回答済み
Projection of 3D positions histograms in planes XY, YZ, and XZ
Here is an example m = 20; % generate some data n = 500; x = randn(500,1); y = randn(500,1); z = randn(500,1); % ...

3ヶ月 前 | 0

| 採用済み

回答済み
How to plot three dimensional triangular based pyramid?
Here is the way [x,y] = pol2cart(deg2rad(0:120:360),1); x1 = [x*0; x; x*0]; y1 = [y*0; y; y*0]; z1 = [x*0+1; x*0; x*0]; sur...

3ヶ月 前 | 0

| 採用済み

回答済み
How to modify values in an array at a certain point inside a loop?
Just add if condition inside your for loop clc clear all a=1.4 for i=1:10 %Here i represents years A(:,:,i)=a; %...

3ヶ月 前 | 0

| 採用済み

回答済み
Colored gradient fill under curve
Use alphaData property, set facealpha to interp x = 0:0.2:10; y = sin(x)+10; xx = [x;x]; yy = [y;y*0]; surf(xx,yy,xx*0,... ...

3ヶ月 前 | 0

回答済み
Voxel export into stl file
What about isosurface? clc,clear clf r = 10; [x,y,z] = meshgrid(-r:r); v = x.^2+y.^2+z.^2<r^2; h = isosurface(x,y,z,v,0.9)...

3ヶ月 前 | 1

回答済み
finding the area of segmented region
Try this I0 = imread('image.png'); I1 = double(I0); imshow(I0); h = msgbox('pick a color'); uiwait(h) p = round(ginput(1))...

3ヶ月 前 | 1

回答済み
How to create multiple graphs based on a variable that goes into a for-loop?
Maybe you need only one more for loop expansion = [1 2 3 4]; x = 0:10; % data for k = 1:length(expansion) y = sin(x)*ex...

3ヶ月 前 | 0

| 採用済み

回答済み
get the inflection points of a contour
Here is a start: use boundary function to find (x,y) coordinates of your contour (and order) Smooth the curve: reduce points a...

3ヶ月 前 | 0

回答済み
Find Specific Faces on a 3D PDE DiscreteGeometry/ThermalModel
Here is an example [x,y] = pol2cart(pi/4:pi/2:2*pi,1); % rectangle gd = [2;length(x);x(:);y(:)]; % geometry description...

3ヶ月 前 | 1

回答済み
How to find the area for each regions with different pixels intensity
See this trick I0 = imread('image.png'); kk = unique(I0(:)); for i = 1:length(kk) I1 = I0 == i; imshowpair(I0,I1) ...

3ヶ月 前 | 0

回答済み
What's the best way to interpolate the vertices of a polygon?
The best way is described here: Interpolation of 3D point data

3ヶ月 前 | 0

| 採用済み

回答済み
How can I cut the connection between the areas?
Try surf x = [time; time]; y = [Ventricle; min([Ventricle;Atrium])]; surf(x,y,x*0,'edgecolor','none','facecolor','r')

3ヶ月 前 | 0

| 採用済み

回答済み
Odd symsum, loop or another way?
use numerical approach [x,y,k] = meshgrid(-1:0.1:1, -1:0.1:1, 1:2:5); u = zeros(size(x)); f = -(16./pi.^3.*(sin(k.*pi.*(1 + x...

3ヶ月 前 | 1

| 採用済み

回答済み
Trying to use an ODE solver for a convergent divergent nozzle. I don't understand why it's telling me the number of elements on the left and right side are different and its not showing anything in the workspace for me to figure it out.
Create breakpoint before the line you have an error using F12. You will find out that variables you are trying to use are empty ...

3ヶ月 前 | 0

回答済み
How to Threshold Crop an Image for analysis
Maybe simple binarization? I0 = imread('image.jpeg'); I1 = I0(:,:,3); I2 = im2bw(I1,graythresh(I1)-0.1); imshowpair(I0,I2,'m...

3ヶ月 前 | 0

| 採用済み

回答済み
Solve-Unable to find explicit solution
I think you can't find symbolical expression/solution for this equation. It's too complicated Define all known constants/variab...

3ヶ月 前 | 1

| 採用済み

回答済み
How to detect cheek from face detection?
Try intersection of an eye and nose See the scheme

3ヶ月 前 | 0

| 採用済み

回答済み
Find a row with all elements satisfying a condition
Use logical indexing mat = [20, 3; 43 0; 8 3; 100 3; 3 9] ix = sum(mat<10,2)>1; a1 = mat(ix,:)

3ヶ月 前 | 0

回答済み
3D plot from tables in timeline
Can you interpolate your data to make it equal size? Concantenate it and use surf

3ヶ月 前 | 0

回答済み
Plot surfaces with random peaks
What about griddata? x = rand(20,1); y = rand(20,1); z = rand(20,1); [x1,y1] = meshgrid(0:0.05:1); z1 = griddata(x,y,z,x1,y...

3ヶ月 前 | 0

| 採用済み

回答済み
How to find the potential that corresponds to some particular (x,y,z) coordinate ?
YOu are doing alright. Just pass to scatteredInterpolant values without NaN ix = ~isnan(x+y+z+c); F = scatteredInterpolant(x(i...

3ヶ月 前 | 0

回答済み
how do we choose circles and rectangulars
binarize image use imfindcircles I0 = imread('img1.jpeg'); I1 = im2bw(I0); [cc,rr] = imfindcircles(~I1,[50 100]); imshow(I1...

3ヶ月 前 | 0

回答済み
Calculate radius from scatter plot
Here is the idea scale your data create an image (fill pixels) dilate image to create solid round object (circle) use imfind...

3ヶ月 前 | 0

回答済み
2D mapping with datapoints from serpent movement.
try this x = [0 repmat([5 5 0 0],1,10)]; y = [1:20;1:20]; y = [y(:)' y(end)]; plot(x,y) axis([-1 6 -1 22])

3ヶ月 前 | 0

回答済み
Calculate radius from scatter plot
Try density function hist3 r = rand(500,1)/5; t = rand(500,1)*2*pi; x = [rand(50,1); r.*cos(t)+0.5]; y = [rand(50,1); r.*si...

3ヶ月 前 | 0

回答済み
How can I sketch correctly?
Here is a start try this line to draw the part you are interested in z1 = (x/2+1).^2 + y.^2/4; surface(x/2+1, y/2, z1, 'FaceC...

3ヶ月 前 | 0

| 採用済み

回答済み
2D plot from 3D Datasets
try this way zslice = [-20,15]*scaLe; figure slice(XX,YY,ZZ,zi,xslice,[],[]) figure slice(XX,YY,ZZ,zi,[],[],zslice(1)) fig...

3ヶ月 前 | 0

回答済み
Griddata gives NaN values
I think you are using griddata in a wrong way clc,clear load Xv.mat load Zv.mat load data.txt xx = linspace(min(Xv),max...

3ヶ月 前 | 0

回答済み
How to connect two scatter 3d plots with lines?
Use plot3 instead of scatter3

3ヶ月 前 | 0

回答済み
How to plot black line contours on an already plotted contourf plot?
This should be helpfull [x,y,z] = peaks(20); contourf(x,y,z,-6:2:6,'linew',2) hold on contour(x,y,z,[2 2],'r','linew',3) ho...

3ヶ月 前 | 0

Load more