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

plus de 5 ans il y a | 0

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

plus de 5 ans il y a | 0

Réponse apportée
Matlab 3d surface plot
Use griddata or scatteredInterpolant

plus de 5 ans il y a | 0

| A accepté

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

plus de 5 ans il y a | 0

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

plus de 5 ans il y a | 1

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

plus de 5 ans il y a | 1

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

plus de 5 ans il y a | 0

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

plus de 5 ans il y a | 0

Réponse apportée
Bubble detection and diameter estimation
binarize image use regionprops with EquivDiameter option

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Output result's format?
try double a = 2; b = 1/sym(a); c = b/a double(c)

plus de 5 ans il y a | 0

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

environ 6 ans il y a | 0

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

environ 6 ans il y a | 1

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

environ 6 ans il y a | 0

Réponse apportée
How to get XYZ coordinates of a 3D image (.obj)
use get x = get(obj,'xdata');

environ 6 ans il y a | 0

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

environ 6 ans il y a | 1

| A accepté

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

environ 6 ans il y a | 1

Réponse apportée
plotting in for loop
See my recommendations

environ 6 ans il y a | 0

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

environ 6 ans il y a | 0

| A accepté

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

environ 6 ans il y a | 0

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

environ 6 ans il y a | 0

| A accepté

Réponse apportée
How can I count scatter data surrounded by shapes?
Use inpolygon

environ 6 ans il y a | 0

| A accepté

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

environ 6 ans il y a | 0

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

environ 6 ans il y a | 0

| A accepté

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

environ 6 ans il y a | 1

| A accepté

Réponse apportée
How to find data points from a 3D plotted graph in MATLAB
use griddata y1 = griddata(X,Z,Y,x1,z1);

environ 6 ans il y a | 0

| A accepté

Réponse apportée
How to put X on intersecting points and find an angle
Try this script

environ 6 ans il y a | 1

| A accepté

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

environ 6 ans il y a | 0

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

environ 6 ans il y a | 0

| A accepté

Réponse apportée
ode45 error rungg- kutta
You probably run the code in a wrong way. Here are some changes

environ 6 ans il y a | 0

| A accepté

Charger plus