Risposto
selection of specific data from graph and extract data
The findpeaks function has a number of name-value pair arguments that can be used to return only selected information. See if...

oltre 3 anni fa | 1

| accettato

Risposto
Fitting an equivalent circuit in EIS data (Frequency, Re Impedance, Im Impedance)
You indicated the Signal Processing Toolbox, so in that regard, see if the invfreqz function will do what you want. Beyond th...

oltre 3 anni fa | 0

| accettato

Risposto
How to tilt the plot on the right to make it like the one on the left?
Tilting it is relatively straightforward with the rotate function — [X,Y,Z] = peaks(50); figure surf(X,Y,Z) xlabel('X') ...

oltre 3 anni fa | 0

| accettato

Risposto
I am trying to extract data points from an image of a graph.
See if the digitize2.m File Exchange contribution will do what you want. It seems to be highly regarded, with 14.7K downloads...

oltre 3 anni fa | 0

Risposto
How to reverse one of the y-axis in a stackedplot?
I doubt that’s possible, since the AxesProperties property doesn’t include YDir. load outdoors outdoors(1:3,:) s = stackedp...

oltre 3 anni fa | 1

| accettato

Risposto
Plotting with arrays, no graph displayed
Plotting one point requres a marker, and plotting a line requires at least two vectors of the same size. Two options, dependi...

oltre 3 anni fa | 1

| accettato

Risposto
How do I store the outputs of my ODEs in a structured array?
It would be easiest to use a cell array — [tout,yout]=ode45('rates',tspan,y0); Results = {t,yout}; This also works in a loop...

oltre 3 anni fa | 0

| accettato

Risposto
Standard Error of each element in matrix
‘... OLS estimate output (B) ...’ If these are regression parameter estimates, then the standard errors (or ideally the 95% c...

oltre 3 anni fa | 0

Risposto
Plot matrix with ticks corresponding to the data points
Try something like this — LD = load(websave('M','https://www.mathworks.com/matlabcentral/answers/uploaded_files/1321115/M.mat'...

oltre 3 anni fa | 0

Risposto
Y double axis plot
The problem is: y1 = [1 1.273; 0.636 0.751; 0.247 0.287; 0.267 0.32; 0.268 0.311; 0.33 0.407; 0.266 0.389; 0.768 1.22; 0.21 0....

oltre 3 anni fa | 1

| accettato

Risposto
Plot several seasonal NDVI time series data with marked transplanting time
I am not certain what you want to do with these data. I have no idea what ‘NDIV’ refers to. This creates patch objects beginn...

oltre 3 anni fa | 0

Risposto
Convert Logical Column to Table
Use the addvars function — T1 = array2table(rand(10,4), 'VariableNames',{'A','B','C','D'}) LogicalVector = rand(10,1)>0.5; ...

oltre 3 anni fa | 2

| accettato

Risposto
Signal Fitting with sine curve (and how to find out the phase shift?)
I initially wnated to see if I could get this to fit using fminsearch, however I wasn’t guessing the correct initial parameter e...

oltre 3 anni fa | 1

| accettato

Risposto
fplot tolerance parameter error
Please begin to use anonymous functions rather than inline funcitons — x = @(t,e) (1/e) .* ((t>0) & (t<=e)); e = 1/100; t1...

oltre 3 anni fa | 1

| accettato

Risposto
Why do I receive the error message "Array indices must be positive integers or logical values. Error in Master (line 32)"
I am guessinmg that it could be: lambda_sq=(pir.*wr_sq.*lr_sq + pin.*wn_sq.*ln_sq) - g(pin.*wn_sq.*ln_sq.*(taux+alpha./alpha.*...

oltre 3 anni fa | 1

| accettato

Risposto
Removal of background continuum emission from a LIBS spectra
It would help to have the data, and a description of the desired result, since I do not understand ‘background continuum emmissi...

oltre 3 anni fa | 1

| accettato

Risposto
Im getting a blank graph, and alot of errors.
Use an anonymous function instead of the deprecated inline function, and since the ‘x’ function actually returns a logical resul...

oltre 3 anni fa | 1

| accettato

Risposto
Matlab: How can I specify the RGB color and line style for each curve in a waterfall plot?
It is likely easier to do this using plot3 — figure xaxis = linspace(-pi/2,3/2*pi, 200); variation = [ 0.5 1 5 10 7 3.5 8 0....

oltre 3 anni fa | 0

Risposto
FFT analysis with window of vibration during milling
The signals have broadband noise, so any sort of frequency-selective filter will not adequately eliminate it. There are two way...

oltre 3 anni fa | 1

Risposto
plot specific frequency of signal
Are you certain that 500 Hz is the correct sampling frequency for this trace? That would calculate to a heart rate of 335 bpm...

oltre 3 anni fa | 0

Risposto
Plot 3D Surface with 4D Colour - Can not Create Surface, only Data Points
The surface function allows the apploication of a specific color matrix to a surface plot. (The surf function does not.) Tr...

oltre 3 anni fa | 0

Risposto
Logical Indexing With LinSpace Issues
format long X = linspace(0.2,3,29) %Creates an array going from 0.2 -> 3 via steps of 0.1. So 1.3 is in it. disp(X(12)) fl...

oltre 3 anni fa | 2

| accettato

Risposto
Shaded error area of Std Dev.
It would of course help to have your data. However this call: std_y = std(P_all,0,2); implies to me that your data are col...

oltre 3 anni fa | 0

| accettato

Risposto
z=f(x,y) and w=f(x,y). I am trying to reverse the table to get x=f(z,w) and y=f(z,w).
Apparently, X, Y, Z and W are all equal-sized matrices. Assuming that there is essentially a one-to-one correspondence between ...

oltre 3 anni fa | 0

Risposto
Plot data in matlab
Isn’t that just this — Scaled = @(data,Th) [data(:) ones(size(data(:)))] * ([Th 1; 0 1] \ [1; 0]); % Scale Data By Thresho...

oltre 3 anni fa | 1

| accettato

Risposto
I have a problem in the annexed excel file there are two tables, first table give the graph representing geological layers I need to get the second table with Matlab Code
One approach — C1 = readcell('https://www.mathworks.com/matlabcentral/answers/uploaded_files/1315950/Salt%20Dome%20Interpretat...

oltre 3 anni fa | 0

Risposto
Hi , all there , i have an excel file that i want to split it by special element value in the file to some files . how can i make it possoble with matlab
To begin a new sub-array whenever a zero appears in any row, this works — M = randi([0 20], 15, 4) ZeroInRow = any(M==0,2); ...

oltre 3 anni fa | 0

Risposto
How to find troughs of a signal below a threshold
Use the 'MinPeakHeight' name-value pair — t = linspace(0, 2*pi, 500); s = sin(2*pi*t) - sin(2*pi*0.1*t-0.45); Threshold ...

oltre 3 anni fa | 1

Risposto
How do I fill colour on both sides of the sin wave in this graph?
Using the patch function — % Define the time axis (x-axis) t = linspace(0, 12, 1000); % Define the parameters of the sinusoi...

oltre 3 anni fa | 0

Risposto
code is right but can not the a plot
You need to redefine ‘t’ so that it matches the row size of ‘u’: t = linspace(0, 2.5, size(u,1)); Try this — % clear % cl...

oltre 3 anni fa | 0

| accettato

Carica altro