Respondida
Fill a circle with Gaussian districution- like colour contour
here is a shot clc,clear [x,y,z] = sphere(10); pcolor(x,y,z,'edgecolor','none')

alrededor de 5 años hace | 0

Respondida
Offset removal from a sinusoidal wave
I have an idea clc,clear x = linspace(0,20,100); y = sin(x); ind = -0.5<y & y<0.5; x1 = x(~ind); y1 = y(~ind); y1 = y1 ...

alrededor de 5 años hace | 0

Respondida
Project on Robotic arm lying on the centre of a square where my end effector lying on one corner and it should move from one corner to other corner and pause for 10 milli seconds until it reaches its initial position.
Here is an example clc,clear D1 = 0.2; D2 = 0.15; t = pi/4+(0:pi/2:2*pi); [x,y] = pol2cart(t,sqrt(2)*0.2); % creat...

alrededor de 5 años hace | 0

| aceptada

Respondida
How can I add the differential equation attached to my script to run in the loop, where n = 4 for the first value of n.
If you have formula for you don't need diff equation T = 1159: 1 : 1358; fr = 1 - exp(-(K*(T-T0)/H).^n); c1 = diff( log(-log...

alrededor de 5 años hace | 0

Respondida
Remove everything outside a defined area
Try initmesh to triangulate example

alrededor de 5 años hace | 1

| aceptada

Respondida
Area calculation of circle projection on cylindric surface
Use sufaceIntersection to find intersection curve Use triangulation to find area: LINK1, decsg, initmesh Here is an example (n...

alrededor de 5 años hace | 0

Respondida
Smooth/Interpolate 3D Curve (Skeleton axis)
see this question: LINK

alrededor de 5 años hace | 0

Respondida
How to plot streamline for velocity data??
try this clc,clear [x,y,z] = peaks(20); % some data [u,v] = gradient(z); % create direction vectors ...

alrededor de 5 años hace | 0

Respondida
writing a traveling electromagnetic wave
I think your plot should be a surface since you have two dependent variables z and t Here is an example t = linspace(0,200,30)...

alrededor de 5 años hace | 0

Respondida
How to switch order of clusters in silhouette plot?
what about this? x = rand(20,1); y = rand(20,1); plot(x(1:15),y(1:15),'.r') hold on plot(x(5:end),y(5:end),'ob') hold off ...

alrededor de 5 años hace | 0

Respondida
Generation of a column with constants values that increases for different RANGE of row
Use meshgrid x = meshgrid(1:5,ones(4,1)) x(:)

alrededor de 5 años hace | 0

| aceptada

Respondida
Creating sub-vectors with equal entries
Use for loop x = ~x; j = 0; k = 0; n = sum(diff(~x)); % number of series '0' ix = zeros(ix,1); for i = 1:length(x)-1...

alrededor de 5 años hace | 0

Respondida
Matlab default vector orientation
Force MATLAB to read rows a(1:3,1) = 1:3; b(1,1:3) = 1:3;

alrededor de 5 años hace | 0

Respondida
3D Curtain plot for Lidar data
Can you plot only part of it? clc,clear [x,y,z] = peaks(100); i = 1:5:100; surf(x(i,i),y(i,i),z(i,i))

alrededor de 5 años hace | 0

Respondida
How to iterate for loops through multiple columns within a table variable
Add one more for loop [datatest,Txt]=xlsread('/Users/Documents/MATLAB/data_test_2.xlsx'); excel_file_final(:,:)=datatest(:,:);...

alrededor de 5 años hace | 0

Respondida
Extrapolation a point outside a surface
Look into scatteredInterpolant Read about extrapolation

alrededor de 5 años hace | 0

| aceptada

Respondida
Plot the angle between two vectors
Maybe you will beinterested clc,clear ni = 10; n = 5; % some vectors x = rand(n,1); y = rand(n,1); z = rand(n,1); ...

alrededor de 5 años hace | 0

| aceptada

Respondida
Help sorting a matrix into other matrix
What about interpolation? clc,clear XYColor = [ 1 3 1 1 1 1 2 1 0 1 1 ...

alrededor de 5 años hace | 0

Respondida
Keep variable in the memory without declaring it as global
Why can't you do something like function y = func1(x) y = some_long_computation(x); end function w = func2(x,z) y =...

alrededor de 5 años hace | 0

Respondida
Error in a code for (Tunnel diode system)
Here is the mistake Use dot instead of comma

alrededor de 5 años hace | 0

Respondida
How to determine the required weight and energy and number of branches using Supercapacitor energy storage
see this solution: for Power_c1=0:1560:1560*27 % code end

alrededor de 5 años hace | 0

Respondida
How can i solve Matrix riccati differential equation in matlab?
Here is an example for equation clc,clear y0 = [1 2 3 4]'; % x0 should be a column [x,y] = ode45(f,tspan,y0); ...

alrededor de 5 años hace | 0

Respondida
Plotting 2 streamlines on the same plot
Use handlers properly clc,clear [x,y,z] = peaks(5); h1 = plot(y,z,'r'); hold on h2 = plot(y,0.9*z,'b'); hold off legend...

alrededor de 5 años hace | 0

Respondida
Creating a 3d diagram using multiple matrix
Maybe you will be intersted create surface [x,y] = meshgrid(1:5,1:4); surf(x,y,x*0) remove unwanted parts z([1 4 13 16 17...

alrededor de 5 años hace | 1

| aceptada

Respondida
specify the style and color of a specific contour line
Just use contour once more contour(x,y,z,[500 500],'linewidth',2,'color','red');

alrededor de 5 años hace | 1

| aceptada

Respondida
Tortuosity of blood vessels
Since you already have a skeletonized image dilate your image at nodes to separate each lines BW1 = imdilate(BW,zeros(3)); ...

alrededor de 5 años hace | 0

Respondida
How to merge several Excel files with large datasets in MATLAB
Use dir to create list of file names in current directory Use for loop to read each file and get the data

alrededor de 5 años hace | 0

Respondida
Find Point where geometry is cut deepest by other geometry
Here is the idea: interpolate both surfaces where they have common region substract data and use contour

alrededor de 5 años hace | 1

Respondida
How to plot boundary of contour??
See contour matrix: LINK

alrededor de 5 años hace | 0

Respondida
isosurface in cylindrical coordinates
Use isosurface normally [f,v] = isosurface(R,THETA,Z,F,isovalue); % returns faces and vertices Convert cylindrical coordinat...

alrededor de 5 años hace | 0

| aceptada

Cargar más