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

alrededor de 5 años hace | 0

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

alrededor de 5 años hace | 0

Respondida
Matlab 3d surface plot
Use griddata or scatteredInterpolant

alrededor de 5 años hace | 0

| aceptada

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

alrededor de 5 años hace | 0

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

alrededor de 5 años hace | 1

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

alrededor de 5 años hace | 1

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

alrededor de 5 años hace | 0

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

alrededor de 5 años hace | 0

Respondida
Bubble detection and diameter estimation
binarize image use regionprops with EquivDiameter option

alrededor de 5 años hace | 0

| aceptada

Respondida
Output result's format?
try double a = 2; b = 1/sym(a); c = b/a double(c)

alrededor de 5 años hace | 0

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

casi 6 años hace | 0

Respondida
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

casi 6 años hace | 1

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

casi 6 años hace | 0

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

casi 6 años hace | 0

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

casi 6 años hace | 1

| aceptada

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

casi 6 años hace | 1

Respondida
plotting in for loop
See my recommendations

casi 6 años hace | 0

Respondida
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

casi 6 años hace | 0

| aceptada

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

casi 6 años hace | 0

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

casi 6 años hace | 0

| aceptada

Respondida
How can I count scatter data surrounded by shapes?
Use inpolygon

casi 6 años hace | 0

| aceptada

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

casi 6 años hace | 0

Respondida
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)];

casi 6 años hace | 0

| aceptada

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

casi 6 años hace | 1

| aceptada

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

casi 6 años hace | 0

| aceptada

Respondida
How to put X on intersecting points and find an angle
Try this script

casi 6 años hace | 1

| aceptada

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

casi 6 años hace | 0

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

casi 6 años hace | 0

| aceptada

Respondida
ode45 error rungg- kutta
You probably run the code in a wrong way. Here are some changes

casi 6 años hace | 0

| aceptada

Cargar más