Community Profile

photo

darova


521 total contributions since 2019

darova's Badges

  • Thankful Level 3
  • 6 Month Streak
  • Revival Level 1
  • Knowledgeable Level 4
  • Pro
  • First Answer
  • Solver

View details...

Contributions in
View by

Answered
How to change the position of arrow in quiver from head/tail to middle of the line?
Use scale scale = 0.5; quiver(...,scale)

2 days ago | 0

Answered
Graph of time against angle for multiple values of theta
You'll have only 2 curves: a=1; g=9.81*100; theta = linspace(1,7,20)*pi/16; hold on for h0 = [30 40] tau = ((h0.^(5/2))...

2 days ago | 0

| accepted

Answered
how to solve this bvp4c?
I re-wrote the main equations (compare yours and mine) and tried b = 1 Check the attachment

4 days ago | 0

| accepted

Answered
Calculate the distance between objects area using matlab.
Use this I1 = edge(I); [m,n] = size(I1); ldist = zeros(1,m); for i = 1:m ind = find(I1(i,:)); % find ind...

5 days ago | 1

| accepted

Answered
how will i get a mesh in 2d region
I tried to simplify the task (plain rectangle instead of ellipse(cylinder)) Here is what i got clc,clear data = load('simpl...

8 days ago | 0

Answered
Find path between two points with X and Y coordinates
I reached a succes p = xlsread('coordinates'); x = p(:,1); y = p(:,2); plot(x,y,'.r') hold on for i = 1:length(x)-1 ...

12 days ago | 1

| accepted

Answered
How to find x range value and calculate average of corresponding peaks in a graph signal?
Try this; index = find(y>100); % find peaks ind = find( diff(x(index)) > 0.01 ); % find ...

12 days ago | 0

| accepted

Answered
How to integrate discrete values over a surface
If your mesh if fine enough you can just multiply sides (area of rectangle) For better precision cross product can be used

13 days ago | 0

Answered
when solving Gilmore equation using ode45 , the answer comes as zero and it plots a straight line in the time interval
Here is what i tried. Do you know the result should looks like?

14 days ago | 1

| accepted

Answered
Creating a Random Vector with Several Conditions
You can just rotate circle and select points you want. I used Rodriguez formula

14 days ago | 1

Answered
Constraining a 3d plot
use interp3 to make finer mesh cut corners you want visualize using isosurface

17 days ago | 0

| accepted

Answered
Erasing part of contourf diagram (L-shaped diagram using contourf)
try ind = x_points > 2 & y_points < 2; temp(ind) = nan;

17 days ago | 0

Answered
solve on vector equation
Try this (solution exists not for any s1 vector) function main nt = 1; ni = 2; s1 = [1 2 2]; s1 = s1/norm(s1); fun...

20 days ago | 0

Answered
How to detect these points in red circle from point cloud. The attached data.txt is the point cloud data. Many thanks.
Here is an idea: load data.txt x = data(:,1); y = data(:,2); z = data(:,3); plot3(x,y,z,'.r') axis equal datacursormode...

23 days ago | 0

| accepted

Answered
Determine cross sectional area from patch data
I think there is no built-in function for your purpose Try to search something like THIS

24 days ago | 0

| accepted

Answered
slice plot gives black surfaces
Planes are not black. THe mesh is just too fine Add to your code h = slice(z,y,x,abs(Eg(:,:,:)),zslice,yslice,xslice); set(h,...

25 days ago | 0

| accepted

Answered
ODE solver - division by zero at time boundaries
As I see it, the problem is at t = 0, y(1,2) = 0 Can you replace 0 with 1e-3?

25 days ago | 0

| accepted

Answered
Solving a system of ODEs with conditionally defined coefficient
replace f=piecewise(0<=t<1, -2*t^2+3*t, t>=1, 1/t); with if t >= 1 f = 1/t; else f = -2*t^2+3*t; end

26 days ago | 0

| accepted

Answered
How to implement Forward Euler Method on a system of ODEs
I've tried and reached a success par_c.k = 14.39964548; % electronvolt per Angström par_c.xj = [0 0]; % position of particle j...

27 days ago | 0

| accepted

Answered
Solving two second order BVPs and the boundary conditions are related
How to set up initial guess? Any ideas? function main %-----------------------------------------------------------------------...

27 days ago | 1

| accepted

Answered
Position of elements'nodes intersected by a line
Look HERE Check each triangle/element. If intersection exists then pick/highlight this element/triangle

27 days ago | 1

| accepted

Answered
Plot dB/dt vs. time by ODE45 (with dB/dt on the y axis and time on the x axis)
What I would like to do is also plot dB/dt vs. time pvar = gradient(varsol(:,3)); dt = gradient(tsol); dB = pvar./dt; plot(t...

27 days ago | 1

| accepted

Answered
Heat transfer differential equation
Call the function this way: [t,y] = ode45(@f,[0,5],1673)

1 month ago | 0

Answered
2D information to 1D colorplot
Simple example x = 0:10; y = x.^2; temp = rand(1,10); % temperature cm = jet(10); % colormap ind = 1+rou...

1 month ago | 0

Answered
Quiver with a system of ODEs.
For vector field u = x'; v = y'; To plot the curve [T,Y] = ode45 ... plot(Y(:,1),Y(:,2)) % (x,y) I suppose x and y depen...

1 month ago | 0

Answered
Solving nonLinear equation and Linearized Eqaution using ODE45
YOu have to express , and . Solve the system function du = nonlin(t,y) fi = y(1); psi = y(2); theta = y(3); ...

1 month ago | 0

| accepted

Answered
How to plot magnitude and directions between 2 points?
try this (not tested) data = load ('Input.txt'); [row, col] = size (data); Y2 = data (:,1); X2 = data (:,2); Y1 = data (:,3...

1 month ago | 0

| accepted

Answered
surface fixed point value Z
I want to know the value of Z from the surfc function Here is it

1 month ago | 0

Answered
Where are the bugs for this ODE finite difference problem that solve using Newton Raphson method?
Here is my attempt clc,clear N = 10; % 10 Set parameters L = 16*0.3048; %meter b = 19.625 * 0.0254; d = 1.625 * 0.0254; ...

1 month ago | 1

| accepted

Load more