Answered
Extract curve/surface from an 2-D area of points not equivalently spaced
I am not certain what result you want. The Signal Processing Toolbox envelope funciton is one option, and since I am familiar...

4 years ago | 0

| accepted

Answered
How to find tangent line of curve
That plot actually looks familiar! See: How to draw a tangent line on a curve for one approach. (That result used the inflec...

4 years ago | 0

Answered
Bode Plot and Corner Frequency
The ‘sys1’ and ‘sys2’ transfer functions are actually improper, wince with a denominator of 1, they are infinite differentiators...

4 years ago | 1

| accepted

Answered
plot a data????
It appears to run correctly, unless there is a quesiton you are not stating. There are only 4 columns in ‘A’ so this threw th...

4 years ago | 0

Answered
Fourier series of any function
I am in no way certain what you want. Calculating a numerical transform is straightforward, however calculating a symbolic ve...

4 years ago | 0

Answered
Plot a shadow between to lines for a current figure without legend
Add a patch call — figure le=[1,2,3]; x=[0 5 15]; y=2*x; for i =1 : length(x) txt = ['$\alpha_1$ = ',num2str(le(1,i))...

4 years ago | 1

| accepted

Answered
Plotting shaded area in matlab
See this File Exchange search for hatch, then choose the function that works best in your intended appplication for it.

4 years ago | 0

| accepted

Answered
What are the graphics drivers with known issues?
I have never seen such a list, or have ever seen this issue being mentioned here previously. Someone from MathWorks needs to po...

4 years ago | 0

| accepted

Answered
smooth curve smooth curve
That appears to me to be a fft result after using the fftshift function on it. Each of the ‘peaks’ is a different frequency com...

4 years ago | 0

Answered
Parsing variable in table
Try something like this — T1 = table(datetime(['2021-02-01 09:00:00' '2021-02-01 09:01:00' '2021-02-01...

4 years ago | 0

| accepted

Answered
How to do normal distribution for same data?
Try something like this — %Import front sonar for 30cm: sonar_F_030 = readtable('https://www.mathworks.com/matlabcentral/answ...

4 years ago | 0

| accepted

Answered
plotting multiple fitting graphs in a single graph
The code works as posted. If you want to plot both results on the same axes, that is straightforward. See the third figure —...

4 years ago | 0

Answered
Vertical Error bars from gauge accuracy
I am not certain what result you want. I ran the code, and the errorbar plot completely covers most of the rest of it, so in...

4 years ago | 0

| accepted

Answered
must return a column vector
I am not certain what ‘ydot’ is supposed to be, however the element-wise multiplication is likely the problem. Use array mult...

4 years ago | 0

Answered
Boeing 747 transfer functions
That would seem to be the ‘A’ matrix of a state space model. Use the Control System Toolbox ss function (with the other necessa...

4 years ago | 1

Answered
Roots of a nonlinear equations system
Use the solve function — syms x y fcn = [-4*y^2 + 4*x - 4 == 0; 16*y^2 - 8*x*y ==0] S = solve(fcn) x = S.x y = S.y .

4 years ago | 1

Answered
Write variable label on the Y-axis of graphs
Try this — figure plot(sort(rand(1,10)), rand(1,10), '-p') ylabel('$\tilde{H}_{H,2}^{H,1}$', 'Interpreter','latex', 'FontSiz...

4 years ago | 1

Answered
Batch FFT operation on EMG data
I am not certain what you want to do. After you load the data and select the sections you want to analyse, convert the data i...

4 years ago | 0

| accepted

Answered
Solving ODEs for chemical rate equations
Here is prototype code for integrating the solution for a different kinetic parameter estimation problem with four rate equation...

4 years ago | 1

| accepted

Answered
finding the Column name of a matrix
I am not certain what you want to do. The equality comparison operator in MATLAB is the double-equal (==) operator — A = ra...

4 years ago | 0

| accepted

Answered
Error using / matrix dimensions must agree
The ‘y’ expression is not a function of ‘x’. Correcting that (and assuming the independent variable is actually ‘ec’) — ec ...

4 years ago | 1

| accepted

Answered
Why is the derivative of a matrix not of the same order?
Use the gradient function instead of diff.

4 years ago | 1

| accepted

Answered
SURF Surface-Plot
Concatenate the column vectors horizontally (to create matrices) instead of vertically (to create column vectors) and it sort of...

4 years ago | 0

| accepted

Answered
3 d plot for the symbolic calculation
The problem was with the fsurf call (and ‘r’ was not defined). This changed version: fsurf(series1,[-50 50 0 50]) works —...

4 years ago | 0

Answered
How to sort an excel sheet by one column matlab
Use readtable to import it then sortrows to sort it. If you want to save the sorted version, use writetable to write it as an ....

4 years ago | 0

Answered
why full area not filled? area under the curve
For the fill (and patch) functions it is necessary to create a closed area. One way to do that is to flip the second vector in ...

4 years ago | 1

| accepted

Answered
How to find maximum among several local peaks?
It would help to have the data. If that is the maximum peak in value, it is also the maximum of the vector plotted in the im...

4 years ago | 0

| accepted

Answered
Does findpeaks only provide one output?
First, what version /release of MATLAB are you using? If the version in your documentation (not the online documentation unle...

4 years ago | 2

| accepted

Answered
Change Sample Rate Audio
I would do something like this, using the Signal Processing Toolbox resample funciton — filename = "test.wav"; [y,fs] = audio...

4 years ago | 0

| accepted

Answered
How to take the average every 4 data points?
An easier way is to just reshape the vector to a matrix, and then take the mean of the columns — v = (1:9536).'; vm = reshape...

4 years ago | 3

| accepted

Load more