Answered

how to export two mat.files into a single excel sheet?

Read all your files using load Write all the data using writematrix

how to export two mat.files into a single excel sheet?

Read all your files using load Write all the data using writematrix

6 Monate ago | 0

Answered

Plotting letter "D" on 3D space

3D letter D r = [1 1.5 1.5 1 1]; % radius of a circles t = [-20:10:200 -20]'*pi/180; % closed contour [T...

Plotting letter "D" on 3D space

3D letter D r = [1 1.5 1.5 1 1]; % radius of a circles t = [-20:10:200 -20]'*pi/180; % closed contour [T...

6 Monate ago | 0

Answered

How to restart a for loop when specific condition is met?

Place for loop inside while loop k = 0; while k < 5 for i = 1:10 if i > 5 k = k + 1; b...

How to restart a for loop when specific condition is met?

Place for loop inside while loop k = 0; while k < 5 for i = 1:10 if i > 5 k = k + 1; b...

6 Monate ago | 1

| accepted

Answered

extracting sub matrix from a cell array

Try data1 = data{1}(:,3:8)

extracting sub matrix from a cell array

Try data1 = data{1}(:,3:8)

6 Monate ago | 1

| accepted

Answered

how can I plot a matrix against two other ones? (need to a matrix 3d plotting )

Use surf [x,y,z] = peaks(30); h = surf(x,y,z); for i = 1:20 z = z + 0.5*rand(30); set(h,'zdata',z) pause(0.5) ...

how can I plot a matrix against two other ones? (need to a matrix 3d plotting )

Use surf [x,y,z] = peaks(30); h = surf(x,y,z); for i = 1:20 z = z + 0.5*rand(30); set(h,'zdata',z) pause(0.5) ...

6 Monate ago | 0

Answered

Finding the intersection points between two curves

I'd try fsolve for solving Read help carefully: fplot(f,[0 10])

Finding the intersection points between two curves

I'd try fsolve for solving Read help carefully: fplot(f,[0 10])

6 Monate ago | 1

Answered

isosurface with wall thickness

What abouy simply to make thicker a lines? [x,y,z] = peaks(30); surf(x,y,z,'linewidth',3)

isosurface with wall thickness

What abouy simply to make thicker a lines? [x,y,z] = peaks(30); surf(x,y,z,'linewidth',3)

6 Monate ago | 0

Answered

how do i continuously calculate an output with an increasing input of angles ?

You need to make wi vector the same size as wj and wk wi = [-w_n+theta*0 0 0]; % i component of W

how do i continuously calculate an output with an increasing input of angles ?

You need to make wi vector the same size as wj and wk wi = [-w_n+theta*0 0 0]; % i component of W

6 Monate ago | 0

| accepted

Answered

How to get the curvature of a meshed surface?

Here are some ideas: Simple way: Precise way:

How to get the curvature of a meshed surface?

Here are some ideas: Simple way: Precise way:

6 Monate ago | 1

| accepted

Answered

Change the value of independent variables to solve the dependent variable equation

Use function handle x = 0:.1:10; f = @(a) sin(a*x); plot(x,f(2),'r') line(x,f(5))

Change the value of independent variables to solve the dependent variable equation

Use function handle x = 0:.1:10; f = @(a) sin(a*x); plot(x,f(2),'r') line(x,f(5))

6 Monate ago | 0

| accepted

Answered

Detecting circles in noisy images with high intensity variations (must work for all cases)

Is the circle the only figure of closed form? A0 = imread('Sem TÃtulo.png'); A1 = im2bw(A0); A2 = imdilate(A1,ones(10)); ...

Detecting circles in noisy images with high intensity variations (must work for all cases)

Is the circle the only figure of closed form? A0 = imread('Sem TÃtulo.png'); A1 = im2bw(A0); A2 = imdilate(A1,ones(10)); ...

6 Monate ago | 0

Answered

Detecting black blob (mouse) in .tif frames

Here is the siple script that does the job A0 = imread('img1.png'); A1 = im2bw(A0,0.2); montage({A0 A1})

Detecting black blob (mouse) in .tif frames

Here is the siple script that does the job A0 = imread('img1.png'); A1 = im2bw(A0,0.2); montage({A0 A1})

6 Monate ago | 0

Answered

Plot lines from FEM (PDE) stress vectors

% generata data n = 20; % number of points x = rand(20,1); y = rand(20,1); u = rand(20,1); v = rand...

Plot lines from FEM (PDE) stress vectors

% generata data n = 20; % number of points x = rand(20,1); y = rand(20,1); u = rand(20,1); v = rand...

6 Monate ago | 0

| accepted

Answered

Can this loop containing different indices be vectorized using implicit expansion (or otherwise)?

Simply remove keywords for and end. Don't forget about element wise operator (dot)

Can this loop containing different indices be vectorized using implicit expansion (or otherwise)?

Simply remove keywords for and end. Don't forget about element wise operator (dot)

6 Monate ago | 0

Answered

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...

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...

6 Monate ago | 0

Answered

How to Draw an ellipsoid between two 3d coordinates

Use rotate to rotate the ellipsoid

How to Draw an ellipsoid between two 3d coordinates

Use rotate to rotate the ellipsoid

6 Monate ago | 0

Answered

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 ...

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 ...

6 Monate ago | 0

Answered

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...

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...

6 Monate ago | 0

Answered

How to get the volume and surface area of separated isosurfaces

Use bwlabel to separate each blob

How to get the volume and surface area of separated isosurfaces

Use bwlabel to separate each blob

6 Monate ago | 0

Answered

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...

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...

6 Monate ago | 0

Answered

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','.')

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','.')

6 Monate ago | 0

Answered

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...

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...

6 Monate ago | 0

Answered

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...

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...

6 Monate ago | 0

Answered

Transform a Numpy array of a mask

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

Transform a Numpy array of a mask

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

6 Monate ago | 0

| accepted

Answered

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)...

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)...

6 Monate ago | 1

Answered

How to create membership functions matlab in triangular form?

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

How to create membership functions matlab in triangular form?

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

8 Monate ago | 0

Answered

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...

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...

8 Monate ago | 0

Answered

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)

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)

8 Monate ago | 0

Answered

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,...

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,...

8 Monate ago | 0

Answered

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...

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...

8 Monate ago | 0