Answered
Compare two CDF distributions
I am not sure that either of those tests would be appropriate for these data. A1 = readmatrix('https://www.mathworks.com/matl...

3 years ago | 0

Answered
Problem adding text to plot, background color doesn't work properly
The line does not through the label. However it is necessary to specify the label in the xline call — xl = xline(0.5,'-','X-L...

3 years ago | 0

| accepted

Answered
How can I get the maximum slope of a curve?
The file is not a .mat file. That problem aside, I would calculate the instantaneous slope as: m = gradient(Cell_Voltage_1...

3 years ago | 1

| accepted

Answered
How to decide order for fir1 band pass filter. Is there any methodology on which basis I can finalize the order to be considered for filter creation.
I usually use kaiserord when I design FIR filters. It calculates the appropriate order as one if its outputs.

3 years ago | 0

Answered
Resample function is not working properly and damaging the signal
I had not noticed the ‘end effect’ problem before (although I use resample relatively frequently, and that is clearly visible i...

3 years ago | 1

| accepted

Answered
How can I put Alaska map as a background behind my contour plots?
You have ‘lat’ and ‘lon’ reversed in the first two arguments to the contourm call. Reversing them — % clear % close all %...

3 years ago | 0

Answered
How to create surface plot from vertical lines?
If you can change that to a series of cross-sections of the propeller blade at various points along its length, the approach in ...

3 years ago | 0

Answered
How can I learn my lisance number
Run the ver function to find the license number. Go to the License Center for other information, and Contact Support if you h...

3 years ago | 1

| accepted

Answered
xline for multiple axes in tiled layout
The ‘ax’ argument to xline has to be a scalar axes handle, so passing a vector of axes handles to it fails. Each nexttile call ...

3 years ago | 1

| accepted

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

3 years ago | 1

| accepted

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

3 years ago | 0

| accepted

Answered
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') ...

3 years ago | 0

| accepted

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

3 years ago | 0

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

3 years ago | 1

| accepted

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

3 years ago | 1

| accepted

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

3 years ago | 0

| accepted

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

3 years ago | 0

Answered
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'...

3 years ago | 0

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

3 years ago | 1

| accepted

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

3 years ago | 0

Answered
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; ...

3 years ago | 2

| accepted

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

3 years ago | 1

| accepted

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

3 years ago | 1

| accepted

Answered
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.*...

3 years ago | 1

| accepted

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

3 years ago | 1

| accepted

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

3 years ago | 1

| accepted

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

3 years ago | 0

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

3 years ago | 1

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

3 years ago | 0

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

3 years ago | 0

Load more