Beantwortet
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...

mehr als 3 Jahre vor | 0

Beantwortet
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'); ...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
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...

mehr als 3 Jahre vor | 0

Beantwortet
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 — ...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
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...

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
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. ...

mehr als 3 Jahre vor | 2

Beantwortet
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...

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
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',...

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
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 ...

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
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...

mehr als 3 Jahre vor | 1

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

mehr als 3 Jahre vor | 0

Beantwortet
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+...

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
Why do I get "Array indices must be positive integers or logical values" error when using "angle" function?
You have a variable named ‘angle’ somewhere in your workspace. If you run: which angle -all the results should be similar to...

mehr als 3 Jahre vor | 0

Beantwortet
Finding similar elements in a single matrix
One approach using accumarray — x = [2 0 0 3 3 0 4 4 0 5 5 5 6 6 6]; [Aunique,~,idx] = unique(x(:))...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
How to Stop FOR loop when "answer" is reached, and display answer?
See the documentation on the break function.

mehr als 3 Jahre vor | 0

Beantwortet
Excel column informtion input
I would use readtable to read the file, then addvars to add one or more variables in the desired position, then writetable to wr...

mehr als 3 Jahre vor | 0

Beantwortet
Genetic Algorithm not returning best found solution
I do not entirely understand what your ‘obj_fun’ fitness function optimises, however expecting ga to optimise 37 parameters in 2...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
how to read .txt file having the following format.
Use the readcell function — C1 = readcell('https://www.mathworks.com/matlabcentral/answers/uploaded_files/1214888/example.txt'...

mehr als 3 Jahre vor | 0

Beantwortet
how to save anovan figure as a .fig?
It is likely not possible to save the image, however anovan creates a table with the same information if you request it, and it ...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
how to plot 3D figure like this?
Try something like this — Fs = 250; L = 100; f = 1.26; t = linspace(0, L-1, L)/Fs; s = sin([0 (1:2:20)].'*2*pi*t*f)./[1 (1...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Representing samples on analog signal according to the sample period (MATLAB)
The easiest way to create the time vector is: t = linspace(0, L-1, L)/Fe; Example — LD = load('handel.mat'); y = LD.y; F...

mehr als 3 Jahre vor | 0

Beantwortet
Plot Day of Year with Time
Try something like this — T1 = readtable('https://www.mathworks.com/matlabcentral/answers/uploaded_files/1213723/Data_2.csv') ...

mehr als 3 Jahre vor | 1

Beantwortet
defining state matrix as anonymous function
Referring to your other post: ode45 is running an infinite loop (it isn’t actually, since switching from ode45 to ode15s solves ...

mehr als 3 Jahre vor | 0

Beantwortet
How to make a line of fixed length?
It is relatively straightforward to write an anonymous function for this — createLine = @(startpt, slope, len) [startpt(1) sta...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
How to find and fit the objective function for a damped oscillation?
Using fminsearch — T1 = readtable('https://www.mathworks.com/matlabcentral/answers/uploaded_files/1211598/F300.xlsx') x = T1....

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
Getting "Arrays have incompatible sizes for this operation." on this exercise
The ‘z’ assignment fails because the arrays used to calculate it are empty, likely because the first 50 elements of ‘n’ are less...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Unrecognized function or variable 'wgs2utm'
Search the File Exchange for wgs2utm.

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Can I find likelihood function of an objective function?
If you have the Statistics and Machine Learning Toolbox, see if the mle function (and associated functions) will do what you wan...

mehr als 3 Jahre vor | 1

Beantwortet
How to make contour plot of two matrices in MATLAB?
‘Data files both are matrices with 1 row and 55 columns, which represent 55 points.’ They are vectors by definition, and it i...

mehr als 3 Jahre vor | 1

| akzeptiert

Mehr laden