Answered
Double Checking VVF graph
‘... it wouldn't let me.’ Of course it will! You just have to ask it nicely (and ask the correct plotting function)! sy...

4 years ago | 0

| accepted

Answered
smoothing a graph using matlab
A frequency-selective filter can preseerve the essential shape of the signal, eliminating only the high-frequency oscillations i...

4 years ago | 0

| accepted

Answered
Avoid overlapping xline labels
The labels are always at the top of the xline so one option is just to pad the end of the label with spaces — figure xl1 = xl...

4 years ago | 0

| accepted

Answered
Calculating p-value from polyfit [p, S, mu] output
One option is the File Exchange function polyparci.

4 years ago | 0

Answered
How to group multiple excel files into one table
Since ‘not working out’ is not descriptive, see if the documentation section on Import or Export a Sequence of Files can help. ...

4 years ago | 0

| accepted

Answered
How do I extract only the rows from a matrix that meet a specific requirement?
‘My idea is to get a new matrix where I extract the row of data where time(% cicle) is close to 0.5, 1, 1.5, 2 and so on ...’ ...

4 years ago | 1

| accepted

Answered
Assigning values to defined symbolic variables afterwards
Use the subs funciton (and optionally simplify). Try this — syms x ar la sympref('AbbreviateOutput',false); C_I=[((1+(4/...

4 years ago | 0

| accepted

Answered
How to apply butterworth filter to a cell array?
See my Answer to How to apply butterworth filter to a few columns in a table since the same solution likely applies here as well...

4 years ago | 0

| accepted

Answered
How to apply butterworth filter to a few columns in a table
Try something like this — tab_pelvis = filtfilt(b,a,tab_pelvis{:,4:9}); Note the curly braces {}. This will reference the co...

4 years ago | 0

| accepted

Answered
Reading string formatted Date and Time from CSV
‘Obviously this just one of the columns in the file, with additional data in adjacent columns. How can this be read into usable ...

4 years ago | 0

| accepted

Answered
How can I create one chart inside another as in the picture
in the axes documentation, se the section on Position Multiple Axes in Figure.

4 years ago | 1

| accepted

Answered
Error using buffer Input must be a vector.
If ‘y’ is a stereo signal, it is an (Nx2) matrix. Use buffer with each column individually. (This creates code problems becaus...

4 years ago | 0

Answered
How do I find local maxima on a figure/graph in Matlab w/ data points outputted/labeled?
There are at least two possibilities for isolating the maxima, findpeaks (Signal Processing Toolbox) and islocalmax (introduced...

4 years ago | 0

| accepted

Answered
Solve differential equations of 3 variables of second degree.
Use the Symbolic Math Toolbox — syms x(t) y(t) z(t) C1 C2 C3 C4 C5 C6 T Y x0 D1x0 y0 D1y0 z0 D1z0 sympref('AbbreviateOutput'...

4 years ago | 0

Answered
multiple simultaneuous equations solver gives error
‘Array indices must be positive integers or logical values.’ The ‘V_1’ are not integers. Try something like this instead...

4 years ago | 0

| accepted

Answered
How to remove minor oscillations?
I am not certain if the objective is to eliminate the minor oscillations or simply eliminate finding them. To eliminate them ...

4 years ago | 0

| accepted

Answered
How can I generate the energy vector?
If you want to segment it into 20-sample subvectors and then get the sum of each subvector, use the buffer function — VV = abs...

4 years ago | 0

Answered
error using etime (datevec)
If R2014b or later is available, try this — T1 = readtable('https://www.mathworks.com/matlabcentral/answers/uploaded_files/896...

4 years ago | 0

Answered
Findpeaks with multiple columns
I am not certain what the data are, and without the data an appropriate solution is not possible. However, there are two obse...

4 years ago | 0

Answered
Adding datetime to spectrogram x axis
The spectrogram function uses surf to create its plots. In R2021b it accepts datetime values for the axis coordinates (see the ...

4 years ago | 0

| accepted

Answered
How to run batch of peak finding on data?
data = readmatrix('https://www.mathworks.com/matlabcentral/answers/uploaded_files/895415/exampledata.txt') [pks,locs,wdt,...

4 years ago | 0

| accepted

Answered
How to differentiate vectors
Use the gradient function — lambda = linspace(0.5,2.5); n = [1.55155531233953 1.54949576778463 1.54767969992980 1.546069410...

4 years ago | 0

| accepted

Answered
Coupled ODE dsolve Problem
The original dsolve call output was throwing the error. However the problem is that the system is nonlinear, and as the resul...

4 years ago | 0

Answered
interpolating data to different sample rate
If they are signals, use resample because it includes an anti-aliasing filter, and these appear to be signals. format longE ...

4 years ago | 0

Answered
want to make timetable
Use the table2timetable function.

4 years ago | 1

| accepted

Answered
How to add a first row and a first column of zeros in a matrix?
The easiest way is to create an appropriate zeros matrix and just index into it — A=[1 2 3; 4 5 6; 7 8 9]; B = zeros(size(A,1...

4 years ago | 1

Answered
exp function varios atb
The loop is not necessary. Use vector-matrix multiplication instead. Try this — clear all D=[0,0]; % D - dráha (m),...

4 years ago | 0

| accepted

Answered
How to plot the area between the 2 curves with transparency 50% ?
y = [0;2;4;8;12;15;19;21;23;26;29;32;36;40;43;45]; h=[-0.4270; -0.3210;-0.3600;-0.2967;-0.1400;-0.0876;-0.2430;-0.4170;-0.9...

4 years ago | 0

| accepted

Answered
What matlab products i need as a biomedical engineer?
It depends what you are doing, since Biomedical Engineering covers a wide range of disciplines. My interest is in signal proces...

4 years ago | 0

Answered
How to plot magnitude and phase of a Fourier Transform
Convert ‘X’ into an anonymous function, the evaluate it in the plot calls — w = [-4:0.1:4]; X = @(w) 1./(0.6+(1i.*w)); fig...

4 years ago | 1

| accepted

Load more