回答済み
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')

約5年 前 | 0

回答済み
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 ...

約5年 前 | 0

回答済み
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...

約5年 前 | 0

| 採用済み

回答済み
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...

約5年 前 | 0

回答済み
Remove everything outside a defined area
Try initmesh to triangulate example

約5年 前 | 1

| 採用済み

回答済み
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...

約5年 前 | 0

回答済み
Smooth/Interpolate 3D Curve (Skeleton axis)
see this question: LINK

約5年 前 | 0

回答済み
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 ...

約5年 前 | 0

回答済み
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)...

約5年 前 | 0

回答済み
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 ...

5年以上 前 | 0

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

5年以上 前 | 0

| 採用済み

回答済み
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...

5年以上 前 | 0

回答済み
Matlab default vector orientation
Force MATLAB to read rows a(1:3,1) = 1:3; b(1,1:3) = 1:3;

5年以上 前 | 0

回答済み
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))

5年以上 前 | 0

回答済み
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(:,:);...

5年以上 前 | 0

回答済み
Extrapolation a point outside a surface
Look into scatteredInterpolant Read about extrapolation

5年以上 前 | 0

| 採用済み

回答済み
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); ...

5年以上 前 | 0

| 採用済み

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

5年以上 前 | 0

回答済み
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 =...

5年以上 前 | 0

回答済み
Error in a code for (Tunnel diode system)
Here is the mistake Use dot instead of comma

5年以上 前 | 0

回答済み
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

5年以上 前 | 0

回答済み
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); ...

5年以上 前 | 0

回答済み
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...

5年以上 前 | 0

回答済み
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...

5年以上 前 | 1

| 採用済み

回答済み
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');

5年以上 前 | 1

| 採用済み

回答済み
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)); ...

5年以上 前 | 0

回答済み
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

5年以上 前 | 0

回答済み
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

5年以上 前 | 1

回答済み
How to plot boundary of contour??
See contour matrix: LINK

5年以上 前 | 0

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

5年以上 前 | 0

| 採用済み

さらに読み込む