回答済み
How to add colourmap to 2D vectorplot created by using quiver
Try this example clc,clear [x,y,z] = peaks(20); % generate data [u,v] = gradient(z,1); % create u and v vectors...

5年以上 前 | 0

回答済み
How to statistically determine how much two curves are different?
Use interp1 or spline to interpolate data. Here is an example clc,clear x1 = 0:0.2:4; % fine mesh x2 = 0:0.5:...

5年以上 前 | 0

回答済み
Matlab 3d surface plot
Use griddata or scatteredInterpolant

5年以上 前 | 0

| 採用済み

回答済み
How to solve 4 transcendental equations of 4 unknown values?
Use syms and solve syms Y2 Y3 l2 l3 eq1 = 2*Y1*tan(t1_1)+Y2*tan(t2_1)+Y3*tan(t3_1); eq2 = 2*Y1*tan(t1_3)+Y2*tan(t2_3)+Y3*tan(...

5年以上 前 | 0

回答済み
cumsum till condition is met
Here is a example s = 0; for i = 1:length(M1) s = s + M1(i); if M1(i) > M2(i) s = 0; M3(i) = M1(i)...

5年以上 前 | 1

回答済み
How can I calculate a Drone Projected Area?
here is an idea save your 3D model as .stl use stlread to import it into MATLAB create an image of your model: LINK binarize...

5年以上 前 | 1

回答済み
How to get data in different tables from specific column data using for loop?
Here is an example A1 = readtable('first.xlsx'); id = A1(:,1); % read id walkid = A1(:,2); % read walkid % read al...

5年以上 前 | 0

回答済み
Create matrix with elements representing distance from centre of matrix
What about this? m = 5; n = (m-1)/2; [X,Y] = meshgrid(-n:n); A = sqrt(X.^2+Y.^2) surf(A)

5年以上 前 | 0

回答済み
Bubble detection and diameter estimation
binarize image use regionprops with EquivDiameter option

5年以上 前 | 0

| 採用済み

回答済み
Output result's format?
try double a = 2; b = 1/sym(a); c = b/a double(c)

5年以上 前 | 0

回答済み
Quiver Transparency and Shape
use patch to manipulate edgeAlpha cla t = linspace(0,2*pi,30); [x,y] = pol2cart(t,1); patch(x,y,t,'edgealpha',0.5,... '...

6年弱 前 | 0

回答済み
How I make my phase portrait for several initial condition?
Here is a simple example x0 = [1 2 3]; for i = 1:length(x0) [t,x] = ode45(f,[0 2],x0(i)); line(t,x) end

6年弱 前 | 1

回答済み
How to solve 2 equations with 2 unknowns and for Loop
remove all (i) parts try vpasolve (numerical solver) insteaf of solve (symbolical solver). Your equations can be too complicate...

6年弱 前 | 0

回答済み
How to get XYZ coordinates of a 3D image (.obj)
use get x = get(obj,'xdata');

6年弱 前 | 0

回答済み
How to find the area if the traced are in the graph graph?
select points you need use trapz or polyarea y = [40 40 30 20 15 15 22 33 46 56 48 26 20 20]; x = [1 2 3 4 5 6 7 8 9 10 11 12...

6年弱 前 | 1

| 採用済み

回答済み
I was wondering if this code could be vectorized, and if so, can it be done without conditionals or loops? It would be great if the vectorized form could be written out so that I could run and follow
use impoly to create triangle region tri = ones(height); imshow(tri) p = impoly(gca,[0 1; 1/2 0; 1 1]*height); tri1 = p.crea...

6年弱 前 | 1

回答済み
plotting in for loop
See my recommendations

6年弱 前 | 0

回答済み
How can I color the region bounded by two level curves of countour plots?
extract data from contour function use polyxpoly to find intersection segments

6年弱 前 | 0

| 採用済み

回答済み
How to divide a closed detected edge of an image into 8 parts from a point inside in it..?
use bwboundaries to get coordinates of a circle divide into equal parts x(1:end/8)

6年弱 前 | 0

回答済み
Plotting 3D Animation from 4-D Data
Here is the start clc,clear load 4D_Data.mat % initialization of surfaces for j = 1:size(T_adi,3) h(j) = surface(...

6年弱 前 | 0

| 採用済み

回答済み
How can I count scatter data surrounded by shapes?
Use inpolygon

6年弱 前 | 0

| 採用済み

回答済み
How to solve this fourier series/ boundary value on matlab?
here is a start function res = f(t) if t < 1 res = t; elseif t < 2 res = 1; else res = 3-t; end end and us...

6年弱 前 | 0

回答済み
3D-Surface between 2 lines.
what about this? xf = [xl2(1) xl2(5) xl1(4) xl1(5)]; yf = [yl2(1) yl2(5) yl1(4) yl1(5)];

6年弱 前 | 0

| 採用済み

回答済み
Custering data by color
here is an example. Adapt it for you needs % generate some data t = linspace(0,2*pi,1e4)'; x = cos(50*t) + 0.8*cos(t); y = s...

6年弱 前 | 1

| 採用済み

回答済み
How to find data points from a 3D plotted graph in MATLAB
use griddata y1 = griddata(X,Z,Y,x1,z1);

6年弱 前 | 0

| 採用済み

回答済み
How to put X on intersecting points and find an angle
Try this script

6年弱 前 | 1

| 採用済み

回答済み
How to divide a graph into 8 equal region and assign a number for each region?
Here is the start x = 0:.2:20; x = [x'; nan]; % add 'NaN' to break the line y = sin(x); c = round( (1:length(x))/length...

6年弱 前 | 0

回答済み
Obtain data points from plot using 'buttondownfcn' nested functions
Here is an example function main x = rand(100,1); % generate random data y = rand(100,1); h = plot(x,y...

6年弱 前 | 0

| 採用済み

回答済み
ode45 error rungg- kutta
You probably run the code in a wrong way. Here are some changes

6年弱 前 | 0

| 採用済み

さらに読み込む