# darova

**Statistics**

RANK**45**

of 239 244

REPUTATION**3 390**

CONTRIBUTIONS

**0** Questions

**1 493** Answers

ANSWER ACCEPTANCE **
0.00%
**

VOTES RECEIVED**324**

RANK

of 16 802

REPUTATION**N/A**

AVERAGE RATING**0.00**

CONTRIBUTIONS**0** Files

DOWNLOADS **0**

ALL TIME DOWNLOADS**0**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Content Feed**

Plot a moving wheel in the 3D space

% create model t = linspace(0,2*pi,10); [x,y] = pol2cart(t,1); X = [y*0;y*0;y*0+2;y*0+2]; Y = [y*0;y;y;y*0]; Z = [x*0;x...

ungefär 14 timmar ago | 0

How to Draw an ellipsoid between two 3d coordinates

Use rotate to rotate the ellipsoid

ungefär 15 timmar ago | 0

FEM : plotting stress field in each T3 element

Here is an example: [x,y] = meshgrid(-2:0.2:2); % x,y range z = x.^2+y.^2-4; % z value h0 ...

ungefär 15 timmar ago | 0

Specifying condition criteria for while loop iteration

Did you try to assume the sign of the function value? Derivative can be positive and negative regardless of the value Maybe s...

ungefär 16 timmar ago | 0

How to get the volume and surface area of separated isosurfaces

Use bwlabel to separate each blob

ungefär 17 timmar ago | 0

How to find opposing triangle pairs in triangulated objects?

Here is an idea or finding neigbour points; % some data x0 = rand(40,1); y0 = rand(40,1); s1 = max(max(x0)-min(x0),max(y...

ungefär 17 timmar ago | 0

vector of line chart objects returned by plot - problem with modifying markers,...

Try this x = 0:10; y = sin(x); h(1) = plot(x,y,'r'); h(2) = line(x,y+.5); set(h(2),'marker','.')

en dag ago | 0

maps and isolines on the map of the continents

What about this? t = 0:0.02:2*pi; % angle r = 1 + 0.1*cos(10*t); % radius [x0,y0] = pol2cart(t,r); % calcu...

en dag ago | 0

Solve a complex differential equation over different intervals

Here are some notes: there is no need of creating special mesh. You have 3d order diff equation so you need 3 yinit yinit = [p...

3 dagar ago | 0

Transform a Numpy array of a mask

Assume A is your 3D matrix (1024x1024x3) A1 = A(:,:,1); % extract first matrix

3 dagar ago | 0

| accepted

Extracting points from polyshape

See this link about curve interpolation: LINK Saving the data as a picture is a good idea too: try print x = 0:20; y = sin(x)...

3 dagar ago | 0

How to create membership functions matlab in triangular form?

Use sine wave x = 0:pi/2:20; y = sin(x); plot(x,y)

ungefär 2 månader ago | 0

Draw arc with specified angle difference

Wha about this representation? s = load('data.mat'); t = linspace(0,1,20)*pi/180; % angle array [X,Y,Z] = deal( ze...

ungefär 2 månader ago | 0

How to show two axis on a plot only where i want them

try this yticks h = plot(0:10,sin(0:10)); yy = 0:0.2:1; [x,y] = ndgrid([0 10],yy); line(x,y) yticks(yy)

ungefär 2 månader ago | 0

Volume of a solid of revolution for a cross section by points

Looks like simple ellipsoid. Try alphaShape n1 = 50; % circle points n2 = 10; % number of circles [x,...

ungefär 2 månader ago | 0

Generate distinct geometric shapes by using radius ?

Here is ax example t = linspace(0,2*pi,4); % triangle [x,y] = pol2cart(t,30); % cartesian coordinates % move tria...

ungefär 2 månader ago | 0

How to rotate a figure around an origin that is rotating?

Try this t = linspace(0,2*pi,20); [x,y] = pol2cart(t,1); n = 6; % number of small circles h = zeros(1,n)...

ungefär 2 månader ago | 0

| accepted

How can I convert a surface plot to an Occupancy map 3D?

What about isosurface? [x,y,z] = peaks(20); z = (z-min(z(:)))/(max(z(:))-min(z(:)))*19; % scale values inbetween [1 .. 19...

ungefär 2 månader ago | 0

How to create volume out of surfaces?

Your object looks symmetrical. Try manually to create surface p1 = isosurface(...); p2 = isosurface(...); v1 = p1.vertices; ...

ungefär 2 månader ago | 0

How can I fade Contour Lines on to the Binscatter plot?

You can extract edge of the region (yellow squares) using boundary [y,x] = im2bw(A); k = boundary(x,y); Then use i...

ungefär 2 månader ago | 0

Plotting cone and hyperbola

Here is an example [T,R] = meshgrid(linspace(0,2*pi,20),0:5); [X,Y] = pol2cart(T,R); Z = R; % Y = 7.46/(x+5.10) -0.86 is the...

ungefär 2 månader ago | 0

find the minimum distances of all points from neighboring points

Program is slow because of pre-allocation and calling pdist2 everytime try this D = pdist2(centroid,centroid); D = D + eye(si...

ungefär 2 månader ago | 0

| accepted

Conditionally execute a function inside a vector field while integrating with an ODE solver

Try to pass your condition inside ode function An example function dy = func1(t,x) tset = [10 20 30]; if any(abs(t-t...

ungefär 2 månader ago | 1

How to plot streamlines for a fea unstructured mesh with given u,v velocities?

Use griddata to create monotonic data

ungefär 2 månader ago | 0

Overlaying gradient patches in single plot.

See this % x_lo = [1000 ; 1000; 1600; 1600]; % x-limits for RED gradient % x_hi = [1400 ; 1400; 2000; 2000]; % x-limit...

ungefär 2 månader ago | 0

| accepted

Derivative calculator with central difference formula Find the volumetric thermal expansion coefficient for each temperature given in the table. Solve BY MATLAB

Or maybe gradient will be better aproach here. diff returns (n-1) points T = [291 296 305 309 311 316 322 328 331 ...

ungefär 2 månader ago | 0

| accepted

Hello everyone. Now I come across such a problem: given the coordinates of all points of the closed curve acbd, now I want to find all points of the curve ACB and save them. The code I write is as follows, but there are always mistakes. I

Here is your data looks like s = load('M0.mat'); [x,y] = deal(s.M(:,1),s.M(:,2)); plot(x,y)

ungefär 2 månader ago | 0

Zero Area Triangles in Delaunay Triangulation

What about initmesh? t = linspace(0,2*pi-0.1,20); % unclosed contour (without selfintersection) [x1,y1] = pol2cart(...

ungefär 2 månader ago | 0

Color gradient for graph in a for loop

Wha about this? x = [0:.2:10 nan]; y = sin(x); patch(x,y,y,'edgecolor','interp','linewidth',2) colorbar

ungefär 2 månader ago | 0

Area between two curves without intersection

Make sure curves have the same start and end xx = linspace(x1(1),x1(end),100); % new mesh y11 = interp1(x1,y1,xx); ...

ungefär 2 månader ago | 0