Réponse apportée
Extracting data from a graph image using 'ginput'
here is an example x = rand(100,1); % generate some data y = rand(100,1); plot(x,y,'.r') p = ginput(1); d ...

environ 6 ans il y a | 0

Réponse apportée
By tonight I'd like to create an image from RGB data in a file
I think you are looking for griddata

environ 6 ans il y a | 0

Réponse apportée
How to Seperate Region of Interest into 3 Segments
Adapt this example for your needs [x,y] = meshgrid(1:100); I0 = (x-50).^2/4 + (y-50).^2 < 20^2; % create ellipse [i1,j1] =...

environ 6 ans il y a | 0

Réponse apportée
How do I select a region on a 3D plot and extract the indices of the enclosed points?
Here is the script that sould be helpfull

environ 6 ans il y a | 0

Réponse apportée
Can anyone help with this error? (I just want to see the contour of the bluish area at the bottom of the image)
Detect blue region properly I0 = imread('frame75.jpg'); I1 = double(I0); % colors from blue region R = [80 50 0]; G = [...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
How to Plot Stress Contour??
Reshape your data to create a matrix stress = reshape(Sigma_X,6,3); And use pcolor [x,y] = meshgrid(1:3,1:6); Sigma_X = 1.0e...

environ 6 ans il y a | 2

Réponse apportée
How to draw circles at the start of a video and display these circles again at specified framecounts?
You already wrote if statement for the first frame if framecount == 1 Add another condition for each 5 frame if framecount ==...

environ 6 ans il y a | 0

Réponse apportée
Counting line particales in an image
binarize image use imopen to remove thin objects (lines) detect lines use bwlabel to calculate the number of lines

environ 6 ans il y a | 0

Réponse apportée
if else statement for tabular data classification
Try for loop

environ 6 ans il y a | 0

Réponse apportée
I have surface data stored in faces and vertices. How to extract data in a slice (or 2D plane) from this Faces and vertices data?
Use interp2 [x,y,z] = peaks(20); x1 = linspace(min(x(:)),max(x(:)),20); y1 = sin(x1); z1 = interp2(x,y,z,x1,y1); surf(x,y,z...

environ 6 ans il y a | 0

Réponse apportée
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); % ...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
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...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
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; %...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
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,... ...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
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)...

environ 6 ans il y a | 1

Réponse apportée
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))...

environ 6 ans il y a | 1

Réponse apportée
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...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
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...

environ 6 ans il y a | 0

Réponse apportée
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...

environ 6 ans il y a | 1

Réponse apportée
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) ...

environ 6 ans il y a | 0

Réponse apportée
What's the best way to interpolate the vertices of a polygon?
The best way is described here: Interpolation of 3D point data

environ 6 ans il y a | 0

| A accepté

Réponse apportée
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')

environ 6 ans il y a | 0

| A accepté

Réponse apportée
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...

environ 6 ans il y a | 1

| A accepté

Réponse apportée
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 ...

environ 6 ans il y a | 0

Réponse apportée
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...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
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...

environ 6 ans il y a | 1

| A accepté

Réponse apportée
How to detect cheek from face detection?
Try intersection of an eye and nose See the scheme

environ 6 ans il y a | 0

| A accepté

Réponse apportée
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,:)

environ 6 ans il y a | 0

Réponse apportée
3D plot from tables in timeline
Can you interpolate your data to make it equal size? Concantenate it and use surf

environ 6 ans il y a | 0

Réponse apportée
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...

environ 6 ans il y a | 0

| A accepté

Charger plus