Answered
how can you loaded time series data, dependent and independent data in excell file?
I usually use readtable for such problems. It has the advantage of importing everything as well as the column headers.

4 years ago | 0

Answered
Error with simultaneous differential equations
The problem is that ‘t’ is not a function (and shouldn’t be one), so ‘t(0)’ is interpreted as an array reference. Compounding t...

4 years ago | 0

| accepted

Answered
precision of function: UNIQUE
That they are not monotonically increasing is not the same as their not being unique. That is a different problem. If you kn...

4 years ago | 1

Answered
find the value of K for the first positive (real-number) value of R
One approach — G1=tf([3],[4 5 5 1]); figure rlocus(G1) [R,K]=rlocus(G1) Rfin = isfinite(real(R(1,:))); Kv = interp1(r...

4 years ago | 0

Answered
How to get the Z-Axis of power spectrogram?
To see it in 3D, use the view function and choose an appropriate azimuth and elevation. (It was a surf plot in earlier release...

4 years ago | 0

| accepted

Answered
Matlab R2022a: Are all prediction models available in Matlab?
Search the online documentation (and your own Help Center Browser) for predict. This links to the first one that shows up, an...

4 years ago | 2

Answered
Need help with contour plot
Because the length of ‘Z1’ is thelength of the product of the lengths of ‘X’ and ‘Y’ it may simply be necessary to reshape it to...

4 years ago | 1

| accepted

Answered
randomly sample a pair of values in a double
‘I need to RANDOM sample one of the coordinate pairs inside the coord_iso. how can I do?’ One option — RandomRow = randi(si...

4 years ago | 0

| accepted

Answered
How can i simulation this Question
The randn function will produce Gaussian distributed random numbers with a standard deviation of 1. Your assignment says: ‘un...

4 years ago | 0

Answered
Error using DynamicSystem/lsim
Instead of: % Define u(t) u = 1; use: % Define u(t) u = ones(size(t,2),1); Then, it works — % clc % Define the matric...

4 years ago | 0

| accepted

Answered
using trapz in a for loop
The problem: for i=1:length(n) This returns 1 since ‘n’ is a scalar. You probably intend: for i=1:n however that is sti...

4 years ago | 0

Answered
Scaling a graph in MATLAB
It would likely be more appropriate to use stackedplot (or subplot or tiledlayout) for this. Presenting each in separate axes w...

4 years ago | 0

| accepted

Answered
plot a real EEG data save as csv file
Use readtable and then select the appropriate variables rather than using table2array. Without knowing more about the cell arra...

4 years ago | 0

Answered
Generate Filters coeffitients using *.m file
If I understand your question correctly, the filter coefficients are the ‘h’ vector. Also, use filtfilt for the best results,...

4 years ago | 1

| accepted

Answered
I am doing gait analysis. I suppose the black labelled ones are the steps, what is the red labelled ones? The sensor is placed on the thigh, what might cause this?
We’d have to know more about the instrumentation. It’s likely that the red regions are heel-strike and associated thigh-muscl...

4 years ago | 0

Answered
Wrong plot upon right calculation
If it needs to begin at (0,1), the only changes required are that in the ‘K’ assignment, the current value of ‘f1’ needs to be r...

4 years ago | 0

| accepted

Answered
How can i use intersect function correctly ?
Use calls to interp1 in a loop to get each intersection — f=@(x)1+cos(x); g=@(x)sin(x); fg = @(x) f(x)-g(x); x=-8:.01:8; A...

4 years ago | 3

| accepted

Answered
I have a line of experimental data and need to plot confidence interval
I recognise my code (although it’s likely fairly old). This calculates the plots the confidence intervals for a matrix of exp...

4 years ago | 0

Answered
display multiple 3D figures with plot3
Save each loaded file to a cell array instead. Try something like this — a = randi(9, 10, 3); writematrix(a,'Test1.txt'); ...

4 years ago | 0

| accepted

Answered
Build a State Space model from identified Modal Parameters
That may be possible using the Signal Processing Toolbox invfreqz and tf2ss functions. I put the idfrd and ssest calls at the e...

4 years ago | 0

Answered
How to access data of an iddata object in a cell array?
The iddata object is a structure, so in this instance, use cell array indexing and structure referencing to get its contents — ...

4 years ago | 0

| accepted

Answered
How can I find the order of normalized Chebyshev Type I high-pass filter ?
I use the cheb1ord function for such problems. There are equivalent functions for other filter designs. It was introduced be...

4 years ago | 0

Answered
Create a Notch filter with low and high pass filters
Use the bandstop function, specifying 'ImpulseResponse','iir' for best results.

4 years ago | 1

| accepted

Answered
vpasolve gives me only 1 x-value of intersection
An analytic approach is an option, however it will be necessary first to estimate the approximate zero-crossings in any event. ...

4 years ago | 2

Answered
How to parameterize function.
Try something like this — syms t x y z P{1} = x^2 +2*y +3*z; P{2} = x*y -2*z^2; P = subs(P,{x,y,z},{t,t,t}) See the docu...

4 years ago | 1

| accepted

Answered
How to match cell arrays according to their sample ID?
Try something like this — %% Create sample data A= {'Sample ID', 'Value'; 1, 1050; 2,1133; 3,1001; 4,1200}; B= {'Sample ID',...

4 years ago | 1

| accepted

Answered
Resampling matrices in a loop using interp2
I am not certain what hte problem is, since the error messagd is not part of the provided information. I suspect the problem ...

4 years ago | 1

| accepted

Answered
overwrite figure(2) on figure(1)
I am not certain what you are asking. Consider using the hold function to plot two figures on the same axes — syms x f = si...

4 years ago | 1

Answered
retime Linear or next
Try something like this — Time = datetime('now')+hours(0:2).'; Temperature = 10*randn(size(Time)); T2 = table(Time,Temperatu...

4 years ago | 0

Answered
I have a raw eeg data and i want to plot the alpha wave(8-12Hz) of this data in the same window . How can i do? please help me
Design a bandpass filter (using bandpass or other appropriate function), filter the signal, and plot it — Fs = 1000; L = 1E+...

4 years ago | 1

| accepted

Load more