Answered
Vectorizing multiple for loops in Matlab
I changed your code a bit See attached script

9 dagar ago | 1

| accepted

Answered
Linking marker face color to colorbar
Try scatter clc,clear cds_BD = [1.1105 1.3124 1.0474 1.0978 1.0852 1.0474 1.0221 1.0347 1.1988]; cd...

9 dagar ago | 0

| accepted

Answered
plotting two x aes and 1 y axes for one plot
Example with two axes. Idea is from HERE x1 = 0:0.1:40; y1 = 4.*cos(x1)./(x1+2); plot(x1,y1,'r') ax1 = gca; ax1_pos = get...

9 dagar ago | 1

| accepted

Answered
How to write a code to calculate the f '(3)?
Try symbolic expression syms f(x) f(x) = x^2; f1 = diff(f); f1(5)

9 dagar ago | 0

Answered
Help if statment inside a while loop
Try to add these conditions if (error >= 500) && a<9 a = a+9 elseif error>=200 && c<9 c = c+9 end Please use this...

9 dagar ago | 1

Answered
Using quiver plot, how to show the states of polarization (SoP) in the cross-section of a vector beam?
Here is a way See attached script

10 dagar ago | 1

| accepted

Answered
Extracting data from excel spreadsheet
Use xlsread to read data Use surf to display it

11 dagar ago | 0

Answered
how to process defocused particle in an image
I have an idea: Binarize image two times with different threshold Separate each blob with bwlabel Compare areas of intersect...

11 dagar ago | 0

| accepted

Answered
With Azimuth and Elevation of a satellite, how to plot the location of the satellite marked with a blue X in the picture?
Just use built-in function sph2cart [X,Y,Z] = sph2cart(az,el,r); plot3(0,0,0,'^r') % human hold on plot3(X,Y,...

12 dagar ago | 0

Answered
How to estimate area via simpson's rule from trapezoidal area calculated from discrete data points
You have 500 points for X data and 5 points for each row or Y data. Assuming that X is distributed evenly: Y = your data; X = ...

12 dagar ago | 0

Answered
Coloring regions and plotting boundaries
Use can use patch() ! x = linspace(0,10); y = sin(x); plot(x,y) p = patch([1 1 2 2],[-1 1 1 -1],''); set(p,'FaceAlpha',...

14 dagar ago | 0

Answered
3D plot of kinect x,y,z data over time - question
I give a start clc,clear cla A = xlsread('pp1_trial1.xls'); nn = 1:19; X = A(:,nn); % read first 19 co...

14 dagar ago | 0

Answered
get 3D angles of vectors
If cit is your 3D data vj = cit(ind,:); %Getting the 3D coordinates use cart2sph v = diff(cit); ...

14 dagar ago | 0

| accepted

Answered
How can I plot a Helical phase fronts similar to the following picture
Use meshgrid and surf commands

14 dagar ago | 1

| accepted

Answered
extract planes from point cloud
Here is my attempt Here is what it produces: See the attached script

14 dagar ago | 0

| accepted

Answered
Surface Plots of 3D Matrix After sum.
Try B = sum(A); surf(squeeze(B))

14 dagar ago | 1

| accepted

Answered
How to solve Error using griddedInterpolant The grid vectors are not strictly monotonic increasing?
Error using griddedInterpolant The grid vectors are not strictly monotonic increasing. Maybe it's because of lat? It's decreas...

15 dagar ago | 0

| accepted

Answered
Convert x,y,z data to surface matrices(2D array)
Make new mesh in spherical V = p.vertices; for i = 1:3 V(:,i) = V(:,i)-mean(V(:,i)); % move to origin end %...

15 dagar ago | 0

| accepted

Answered
Find knee/elbow of a curve
What about imdilate()? clc,clear I = imread('nett.jpg'); I1 = im2bw(I); I2 = imdilate(I1,ones(20)); Z = 1.0*cat(3,I1,I2...

15 dagar ago | 0

Answered
Find cycles in an undirected graph
Just use for loop and cells since you already know indices of each polygon s = [1 1 1 2 3 3 4 4 5 6 6 6 8 9 10 10 12 12 13 14 1...

15 dagar ago | 2

Answered
Fill a matrix after an iteration
Maybe TM = (sum(TMR)>6) .* sum(TMR);

15 dagar ago | 0

| accepted

Answered
3D Plotting in MATLAB
Use plot3() % Voltage 9 x9 = [ 19 20 21 21 21 21 20 20 20 20 18 ]; y9 = [ 0 10 30 50 70 90 110 120 140 160...

16 dagar ago | 0

Answered
How to create a new array with variables that did not meet the required parameters.
Try cond = DwellTime>=2 & DwellTime<=2.5; [cond.*DwellTime ~cond.*DwellTime]

16 dagar ago | 0

Answered
Do not understand Curve intersections code
Intersections just loops through all segments of curves and find all intersections Many of segments have intersections, but i...

16 dagar ago | 0

Answered
sfit data array output
This code A = xlsread('ASTMG173.xls'); x = A(:,1); y = A(:,3); plot(x,y) Produces Is it the curve you want to approximat...

16 dagar ago | 0

Answered
Can this for-loop code get faster in some way?
Maybe ismember function can be replaced: dt = 60000; period_interval = 0 : dt : ts_length; n = length(period_interval); for...

17 dagar ago | 1

Answered
Solving system of nonlinear equation with boundary condition
Use isosurface to visualize roots Use if .. else statement to choose parameter if P > -c^2 T = P; elseif -c^2 < Q && Q ...

17 dagar ago | 0

Answered
Coupled differential equations kinetic
yprime and y are always connected function [ yprime ] = calibration( t,y,par,par_cali,T,x1,O2) Your input y were in wrong orde...

17 dagar ago | 1

| accepted

Answered
Solution to ODE in matlab or simulink
I tried to solve this equation first What are constants values? % opengl software G = 2; V = 2.4; Q = 5; J = 1; n0 = 1....

17 dagar ago | 1

Load more