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

etwa 5 Jahre vor | 0

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

etwa 5 Jahre vor | 0

Beantwortet
Matlab 3d surface plot
Use griddata or scatteredInterpolant

etwa 5 Jahre vor | 0

| akzeptiert

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

etwa 5 Jahre vor | 0

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

etwa 5 Jahre vor | 1

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

etwa 5 Jahre vor | 1

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

etwa 5 Jahre vor | 0

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

etwa 5 Jahre vor | 0

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

etwa 5 Jahre vor | 0

| akzeptiert

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

etwa 5 Jahre vor | 0

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

fast 6 Jahre vor | 0

Beantwortet
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

fast 6 Jahre vor | 1

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

fast 6 Jahre vor | 0

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

fast 6 Jahre vor | 0

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

fast 6 Jahre vor | 1

| akzeptiert

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

fast 6 Jahre vor | 1

Beantwortet
plotting in for loop
See my recommendations

fast 6 Jahre vor | 0

Beantwortet
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

fast 6 Jahre vor | 0

| akzeptiert

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

fast 6 Jahre vor | 0

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

fast 6 Jahre vor | 0

| akzeptiert

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

fast 6 Jahre vor | 0

| akzeptiert

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

fast 6 Jahre vor | 0

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

fast 6 Jahre vor | 0

| akzeptiert

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

fast 6 Jahre vor | 1

| akzeptiert

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

fast 6 Jahre vor | 0

| akzeptiert

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

fast 6 Jahre vor | 1

| akzeptiert

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

fast 6 Jahre vor | 0

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

fast 6 Jahre vor | 0

| akzeptiert

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

fast 6 Jahre vor | 0

| akzeptiert

Mehr laden