Community Profile

photo

darova


Last seen: Today Active since 2019

Statistics

All
  • Revival Level 2
  • Explorer
  • Thankful Level 4
  • First Review
  • 12 Month Streak
  • Guiding Light
  • Knowledgeable Level 4
  • First Answer
  • Solver

View badges

Content Feed

View by

Answered
How to plot streamline, streakline and pathlines without using 'streamline streamline, odexx or similar functions in Matlab'
What about ode45? Streamline is just a trajectory, if you have vector field you can find a solution [x,y,z] = peaks(20); [u,v]...

alrededor de 3 horas ago | 0

Answered
3D Sphere projection in Matlab
interpolate in spherical coordinates i = rand(20,1); j = rand(20,1); r = 1 + 0.1*rand(20,1); i1 = linspace(min(i),max(i),30)...

alrededor de 3 horas ago | 1

Answered
Plot part of sphere by binary map.
What about plot3? [x,y,z] = sphere(20); [az,el] = meshgrid(200:5:250,0:5:20); [x1,y1,z1] = sph2cart(az*pi/180,el*pi/180,1); ...

alrededor de 3 horas ago | 0

Answered
How to evaluate vector function defined in 2D with meshgrid?
Try cat fun = @(x, y) cat(3, sin(x).*sin(x), cos(x).*cos(y));

alrededor de 4 horas ago | 0

Answered
How do I fit a surface to this data properly?
I don't have this problem s = load('data.mat'); x = s.x; y = s.y; z = s.z; xx = linspace(min(x),max(x),20); yy = linspace(...

alrededor de 4 horas ago | 0

Answered
I want to fit lines to the 3D points seen in the photo and get its shape But I do not know how to do it. please guide me. The points file is available.
SOmething is wrong with the data you attached s = importdata('POINT.txt'); x = s(:,1); y = s(:,2); z = s(:,3); plot3(x,y,z,...

2 días ago | 0

| accepted

Answered
How can I plot brillouin zone of 14 bravais lattice crystal
What about this [x,y,z] = sphere(4); surf(x,y,z,'facecolor','none')

2 días ago | 0

Answered
I have a set of experimental data in form of a parameter as a function of the other, keeping certain conditions constant. How do I know the best curve that fits the data?
Use fit x = 0:0.1:2; y = x.^2 + 0.2*rand(size(x)); f = fit(x(:),y(:),'poly2'); plot(x,y,'.r') line(x,f(x)) legend('origina...

5 días ago | 0

Answered
Using fit inside a loop
Try cell sf{1} = @(x) sin(x); sf{2} = @(x) cos(x); x = 0:0.1:10; plot(x,sf{1}(x),'r') line(x,sf{2}(x))

5 días ago | 0

Answered
i have to create a grid using meshgrid fn. and name it as grid_mat. i'm unable to name it and select points on it for different planets .
You can't assing variables that way a = b = 0; You can use deal [a,b] = deal(0); Or you can separately initiate variables a...

6 días ago | 0

Answered
How do you use contour if you only know f(x,y,z) but not z(x,y)?
Use isosurface with griddata [x,y,z] = meshgrid(-10:10); % x y z range f = x + y.^2 - z.^2; % function ...

6 días ago | 0

| accepted

Answered
Howextract results From pdeplot3D to plotthe temperature variation in XY Plan
You are looking for pdecont

8 días ago | 0

Answered
Calculating area volume from longitude, latitude and altitude
Convert spherical coordinates into cartesian using sph2cart Use alphaShape to build an object and calculate volume

8 días ago | 0

| accepted

Answered
How can I extrapolate following data to a certain value in x direction.
Make this changes to your code Transmission = [Tranmission Tansmission(end)]; Length = [Length 5000];

8 días ago | 0

| accepted

Answered
How to Interpolate between ROIs in 3D space
Maybe it will be helpfull t = linspace(0,2*pi,11)+pi/2; r = 3 + sin(5*t); % create a start [x,y] = pol2cart(t,r); ...

11 días ago | 0

Answered
How to generate Q4 element mesh in selected area?
What about this? x = [-10:-8 -7:7 8:10]; y = [-8:-6 -5:5 6:8]; [X,Y] = meshgrid(x,y); i1 = -8<X & X<8 & -6<Y & Y<6; % ...

11 días ago | 0

Answered
plot 5 indipendent vectors in 3D plot
Just use griddata to interpolate data Delta is represented by color. x = 20*rand(100,1)-10; % surface coordinates y = 20...

11 días ago | 0

| accepted

Answered
Image analysis. Measure the radius of a bending filament as a function of arc length
See this example. Red lines are normals from first edge/curve. I'd use polyxpoly to calculate intersections between normals and ...

13 días ago | 0

Answered
Time integration function in Matlab
Use trapz if you have numerical data Use integral for formula

14 días ago | 0

| accepted

Answered
I want to hide the circles and only plot centroids with "+" sign
binarize use regionprops

14 días ago | 0

Answered
How to rotate a surface(or a 2D plane) in 3D Cartesian coordinate ?
See this example: R = @(a) [cosd(a) -sind(a); sind(a) cosd(a)]; t = 0:.1:2*pi; [x,y] = pol2cart(t,5+sin(5*t)); line(x,y) v1...

14 días ago | 0

Answered
Solve multiple eigenvalue ODE problem with bvp4c
Remove those spaces

14 días ago | 0

Answered
Plot multiple contours in 3D without volume data
You can use surf t = linspace(0,2*pi,50); [x1,y1] = pol2cart(t,1+0.1*sin(5*t)); % first contour [x2,y2] = pol2cart(t,1); ...

14 días ago | 0

Answered
How to find Area Under the Curve of a Smoothing Spline Curve Fitted Model from Discrete Data Points ?
Use code instead of application x = [0.3 0.55 0.6 0.7 0.8 1.2 1.4 2.0 2.5 3.0 3.5 4.0]; y = [0.0010640542,0.0010009253,0.00097...

14 días ago | 0

Answered
Create local coordinate system and update throughout flight
Just find tangent of a trajectory x = 0:.1:pi; y = sin(x); u0 = diff(x); % component of a tangent v0 = diff(y)...

14 días ago | 0

Answered
Griddata generates duplicate points while plotting CFD imported 3D data on an xy Plane
There is something wrong with the data D = importdata('data.txt'); X = D.data(:,2); Y = D.data(:,3); Z = D.data(:,4); p...

14 días ago | 0

Answered
Import STL file and convert to Matrix
Try stlread to import geometry Use griddata to interpolate data

14 días ago | 0

Answered
Heatmap - how to get the plotted colors
Just scale values %Exp. Data=[0.216745778875956 0.0122005059399983 0.0162673412533310 0.00149830774701733 0.26338905594...

14 días ago | 0

Load more