Answered
Computing findpeaks along 3-Dimensional matrix
I am guessing here, since I do not have your data. Since findpeaks is going to return vectors for the peaks, locations (and oth...

6 years ago | 0

| accepted

Answered
Fill in a Polar Scatter Plot
Do everything in Cartesian coordinates, although defining the coordinates in terms of and . Then, use pol2cart to create them ...

6 years ago | 0

Answered
finding the exact points of Zero crossing using interpolation method
You are plotting the values of the data at the indices that ‘zci’ returns, not the interpolated aero-crossings. It would be b...

6 years ago | 0

| accepted

Answered
how do i find minimum value of function with matlab?
I agree with you that using the diff function is the appropriate way to begin.

6 years ago | 0

Answered
Can't plot polyfit
The polyfit function also needs to know what degree of polynomial you want to fit: p = polyfit(x,y,n) where ‘n’ is the degree...

6 years ago | 0

| accepted

Answered
Matlab code and filterDesigner give different plots for the same setting of Chebyshev II bandpass filter?
I suspect that filterDesigner uses the second-order-section implementation of the filter. You should, as well. Change: [...

6 years ago | 0

| accepted

Answered
How to find the width of plotted graph at selected Y-axis level?
Try this: lambda = linspace(0.4, 0.6); % Wavelength Vector s = sinc(((0.47:0.02:0....

6 years ago | 1

| accepted

Answered
how to get the value of x, from this equation: 0.2exp(x)-x^(0.25) = 0
I do not understand what the problem is: fun = @(x) (0.2*exp(x)-x.^(0.25)); x0 = [1.5,0]; x = fsolve(fun,x0); xv = linspac...

6 years ago | 0

Answered
2 Scenario Legend Setup
See the Line Properties documentation on DisplayName. That might do what you want.

6 years ago | 0

Answered
Change datetime display format
It is possible. It just takes some coding gymnastics: tj = 2.456870501842000e+06; mtime = datetime(tj,'ConvertFrom','juliand...

6 years ago | 1

Answered
how to get a cdf plot of my data
Try this: [f,x,flo,fup] = ecdf(fitness); figure loglog(x, f) hold on plot(x, [flo fup], '--r') hold off grid legend('...

6 years ago | 0

| accepted

Answered
Displaying random numbers as a graph
One approach is to use the inpolygon function: x = linspace(0, 10); y = exp(-(x-5).^2)*0.2; r = rand(1000,2).*[10 0.25]; [i...

6 years ago | 1

| accepted

Answered
Creating a Filter and applying it
See: Realize or Apply the Filter to Input Data

6 years ago | 1

| accepted

Answered
Unit of FFT in matlab
The fft function does not change the units of the time-domain argument it is given. The fft function produces a double-sided ...

6 years ago | 0

Answered
Predictions for stepwise regression model
No predict function is defined for stepwisefit. One is defined for stepwiselm: m = stepwiselm(matrix , Y) prediction1 = pr...

6 years ago | 0

| accepted

Answered
Create a row vector of the diagonal elements from matrix.
Meet the diag function!

6 years ago | 0

| accepted

Answered
How do you use values from an array as serial numbers to extract values from a different array?
It is not possible to reference ‘row 0’ since MATLAB subscripts begin at 1. I am not certain what you want, so see if this sh...

6 years ago | 0

Answered
How to mix multiple audio signals in Matlab?
It is somewhat difficult to follow your code (and I cannot run it since my version of MATLAB can only run actual code, not image...

6 years ago | 0

Answered
Residual values for a linear regression fit
I would do something like this: x = [1,1,2,2,3,4,4,6]'; y = [8,1,1,2,2,3,4,1]'; xv = x; yv = y; for k = 1:numel(x) ...

6 years ago | 0

| accepted

Answered
ode45 failing but other solvers work fine
Run this from your Command Window or a script: which ode45 -all You should only get: C:\Program Files\MATLAB\R2020b\toolbox...

6 years ago | 0

| accepted

Answered
How can i visualize ecg contain 12 leads in 12 different figures
This is the standard format for EKG record display: EKGD = load('temp.mat'); EKG = EKGD.signal; Leadc = {'I','II','III','a...

6 years ago | 3

| accepted

Answered
Use vectors to index an 2D array
Use the sub2ind function to create linear indices from the subscripts: X = [1 2 3 4]; Y = [4 3 2 1]; A = zeros(4); Lidx =...

6 years ago | 2

| accepted

Answered
Plot range of values in a bar graph
I was not certain what result you wanted when I replied to your Comment to Plot range of values as bars. I gave a sort of gener...

6 years ago | 0

Answered
How to find x-values when y-function equals a set value?
Try this: x = linspace(0.54, 0.61); % Create Data y = exp(-(x-0.58).^2*1E+4); ...

6 years ago | 0

| accepted

Answered
changing sampling rate of an audio
Import the file, then use the Signal Processing Toolbox resample function to resample it to a different sampling frequency.

6 years ago | 0

Answered
Converting Frequency domain to time domain
‘How do I convert it into Acceleration vs time data using ifft function.’ Thet depends entirely on what the data are. If you...

6 years ago | 2

Answered
Trying to Plot feedback system
The image is a bit difficult to read. The error appears to be thrown with the step call. This may likely be due to your having...

6 years ago | 0

Answered
raise power to power in title
Try this (using LaTeX): figure plot(rand(50,1), rand(50,1), 'p') axis([0 1 0 1]) title('$y = x \times e^{- \frac{x^2}{2...

6 years ago | 1

| accepted

Answered
Hi. I have problems with transfer function and Laplace
Control System Toolbox objects and Symbolic Math Toolbox objects are inherently incompatible. It takes a bit of effort to get t...

6 years ago | 0

| accepted

Answered
finding rms of fundamental and thd using csv file
Use the Signal Processing Toolbox functions thd and rms. The Fourier transform plot illustrates the harmonics, so you can use...

6 years ago | 1

| accepted

Load more