Answered
Function for fourier series
Try this — %%plot part M=0; A=1; T=10; t=0:0.1:60; N=10; figure subplot(4,1,1) ft=signal("square",t,A,M,T,N); ...

4 years ago | 1

| accepted

Answered
Fitting of two differential equations simultaneously using lsqcurvefit
If the differential equations are coded correctly, the curves should fit. Check that to be certain that both do, and that they ...

4 years ago | 0

| accepted

Answered
what is the relation between π*radian/sample and Hz in frequency axis of wvtool for windowing?
The radians/sample notation is the normalised frequency. The highest frequency that can be uniquely represented in a sampled si...

4 years ago | 0

Answered
How do I assign the values in my vector to their respective variables in the equation?
Taking a wild guess, perhaps something olike this (assuming that ‘a’ is the first matrix column, etc.) — Mabc = [6.9038, 1163....

4 years ago | 0

Answered
How do I remove duplicate columns in a cell array of numbers?
Working on this for a while, I took a somewhat different approach (after several failed attempts) — x = {1,0.808920599985868,1...

4 years ago | 0

| accepted

Answered
How to denormalize the output
Assuming that the normalisation was by z-score, if the mean and standard deviation of the original data were calculated and save...

4 years ago | 1

| accepted

Answered
How do I get valuables from audioinfo
The audioinfo function returns a structure, so refer to its fields — load handel.mat filename = 'C:\Temp\handel.wav'; audiow...

4 years ago | 1

Answered
Filter Sound from Data
That appears to me to be correct. If you are using the same filter for all the data sets, return the digital filter object a...

4 years ago | 0

Answered
how to plot data of the same date at one plot at a time
One approach — T1 = readtable('https://www.mathworks.com/matlabcentral/answers/uploaded_files/902795/table.txt', 'VariableNami...

4 years ago | 0

Answered
How to plot peaks on desired location in a 3D plot?
[X,Y] = ndgrid(0:300); C = 50:100:300; Zf = @(C) exp(-(((X-C).^2)*0.5+((Y-C).^2))); Z = Zf(C(1)) + Zf(C(2)) + Zf(C(3)); ...

4 years ago | 1

| accepted

Answered
How to keep more digits when use symbolic expressions
From the documentation on 'FloatingPointOutput' — The true value option displays symbolic results in the short fixed-decimal f...

4 years ago | 0

| accepted

Answered
Why is my plot() not working?
Experiment by commenting-out the axis call. The values being plotted are outside the axes limits. initial_l = 20; change_...

4 years ago | 0

Answered
Combine date and duration into single datetime column
Add them — DT = datetime(repmat([2018 01 01], 5, 1)) DU = duration('00:00:00') + 5*minutes(0:4)' Combined = DT + DU .

4 years ago | 0

| accepted

Answered
error regarding syms symbolic mathtool
Yes, there is. The expression is missing a multiplication operator — Rid*(R1+Rf) ↑ ← HERE MATLAB does not recognise i...

4 years ago | 0

Answered
Error using Plot for Fourier Series
I beleive there is a typographical error in the ‘x’ assignment. I changed the ‘x’ to ‘t’ on the RHS and it works. Also, the su...

4 years ago | 0

| accepted

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

Load more