답변 있음
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)...

거의 3년 전 | 0

| 수락됨

답변 있음
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...

거의 3년 전 | 0

답변 있음
How to create volume out of surfaces?
Your object looks symmetrical. Try manually to create surface p1 = isosurface(...); p2 = isosurface(...); v1 = p1.vertices; ...

거의 3년 전 | 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...

거의 3년 전 | 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...

거의 3년 전 | 1

답변 있음
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...

거의 3년 전 | 0

| 수락됨

답변 있음
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...

거의 3년 전 | 1

답변 있음
How to plot streamlines for a fea unstructured mesh with given u,v velocities?
Use griddata to create monotonic data

거의 3년 전 | 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...

거의 3년 전 | 0

| 수락됨

답변 있음
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 ...

거의 3년 전 | 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(...

거의 3년 전 | 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

거의 3년 전 | 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); ...

거의 3년 전 | 0

답변 있음
geodesic distances on a curved surface
Here is an example [x,y,z] = peaks(20); % surface % curve coordinates x1 = linspace(-3,2,20); y1 = linspace(-...

거의 3년 전 | 0

| 수락됨

답변 있음
What values do I need to put in
What about this? x = 0:40; y = sin(x)./x; plot(x,y)

거의 3년 전 | 0

답변 있음
Extrapolation of potential values to higher order
scatteredInterpolant has extrapolation property. You can also interpolate the data

거의 3년 전 | 0

답변 있음
Divide the 3D surface into equal patches
Try arc length interpolation. Original link: LINK function main clc,clear % generate some data [x,y] = meshgrid(-1:0.4...

거의 3년 전 | 0

| 수락됨

답변 있음
Matlab code for extract shape features from an image including circle and rectangle
Just binarize the image A = imread('5C54390E-80C8-47DD-9293-822E85D06145.jpeg'); A1 = im2bw(A); L = bwlabel(~A1); ...

거의 3년 전 | 0

| 수락됨

답변 있음
Create 3D plot from 2D contour (length and radius)
See this example z = 0:.1:3; r = sin(z); t = linspace(0,2*pi,20); [T,R] = meshgrid(t,r); [~,Z] = meshgrid(t,z); [X,Y] = po...

거의 3년 전 | 1

| 수락됨

답변 있음
Divide the 3D surface into equal patches
Try to interpolate in polar system. Find center of a circle clc,clear data = load('curve.txt'); x = data(:,1); y = data(...

거의 3년 전 | 0

답변 있음
Divide the 3D surface into equal patches
Try griddata to interpolate

거의 3년 전 | 0

답변 있음
Program to perform a reshape of an array
Use reshape without for loop M = reshape(W',4,[]);

거의 3년 전 | 0

답변 있음
Surface generation with an external impact at particular point
See this [t,r] = meshgrid(0:10:360,0:0.2:5); [x,y] = pol2cart(t*pi/180,r); z = -90*x.^2.*y.^2; % remember about dot (.*) ...

거의 3년 전 | 0

답변 있음
Extracting information from 3D model - .stl file management on matlab
Try this link: Surface Curvature Can you just analyze edge length to find minimum/maximum distances?

거의 3년 전 | 0

| 수락됨

답변 있음
how can i use one equation output values in another equation input
Try meshgrid [x,y] = meshgrid(freq,itime); plot(x,y)

거의 3년 전 | 0

답변 있음
How to find a common area between three graphs in same plot
Do you have polyxpoly? Try intersections if not

거의 3년 전 | 0

| 수락됨

답변 있음
How to create an animation between 3 points
See this example x = 0:10; y = sin(x); for i = 1:lengh(x) plot(x(1:i),y(1:i)) pause(0.2) end

거의 3년 전 | 0

답변 있음
Surface generation for material removal after impact of tool
See ths example clc,clear [t,r] = meshgrid(0:10:360,0:0.2:5); [x,y] = pol2cart(t*pi/180,r); z = sin(r)./r; z0 = 1; ...

거의 3년 전 | 0

| 수락됨

더 보기