Answered
How to extract idpoly property to workspace
There are several properties that can be retrieved from the System Identification Toolbox ‘data’ objects. See the documentation...

3 years ago | 0

| accepted

Answered
Getting wrong frequency from fft compared to curve fit
Calculating the frequencies for a two-sided Fourier transform can initially be a bit of a challenge. Try something like this ...

3 years ago | 1

| accepted

Answered
How to extract column number of a variable in matlab table?
One approach — T1 = array2table(randn(7,5), 'VariableNames',{'A1','A2','A3','A4','A5'}) VN = T1.Properties.VariableNames; Lv...

3 years ago | 0

| accepted

Answered
where is the error
The system is nonlinear, and not one of the few nonlinear systems that haave analytic solutions. After commenting-out the dso...

3 years ago | 0

| accepted

Answered
second analytical solution of implicit equation
I believe you are plotting ‘M’ as a funciton of ‘r’ however it likely does not have an analytic solution. In the lambertw argum...

3 years ago | 0

Answered
Edit envelope data by mouse
Please describe what you want to do. If envelope is not doing what you want, and you want to find the peaks (rather than RMS ...

3 years ago | 0

Answered
How can i delete max values for each 5 rows in vector
This looks like homework, however I need something to do this morning — A = [1 14 4 23 3; 8 9 12 4 5; 2 4 19 20 22]; ...

3 years ago | 0

| accepted

Answered
Root mean square of velocity fluctuations
The data are gridded, and actually for surfaces. How do you want to calculate the RMS value of a surface? data = readmatr...

3 years ago | 0

| accepted

Answered
@(T,X)SSMODEL must return a column vector ERROR
I have no idea what ‘alpha’ is, however it must be numeric and not symbolic. It needs to be passed as an extra argument to ‘ssm...

3 years ago | 1

| accepted

Answered
Unable to perform assignment because dot indexing is not supported for variables of this type
The xlsread function returns the first output as a matrix of double values, as described in the documentation section on num, an...

3 years ago | 0

Answered
what is the matlab code for ploting dispersion against wavelength (for chromatic dispersion)?
Try this — syms c lambda n_eff(lambda) D_T = -(lambda/c) * diff(n_eff,2) See MATLAB Onramp .

3 years ago | 0

| accepted

Answered
Dual Tone Multi Frequency Fourier Transform
The Fourier transform plots are correct. I changed them to plot a one-sided transform, and this emphasizes the differences in t...

3 years ago | 0

| accepted

Answered
Logarithmic scale problem in 2D graph
I don’t see anything wrong with the code (however I rewrote the assignment to make it a bit easier for me to understand in the ...

3 years ago | 1

| accepted

Answered
An implementation issue with MatlabFunction
If you want matlabFunction to produce a vector for several arguments, in the 'Vars' argument, enclose them in square brackets to...

3 years ago | 0

| accepted

Answered
How do I extract a specific part of multiple numbers in a vector?
Try something like this — q = [202021031200; 202021031210]; DT = datetime(string(q), 'InputFormat',"yyyyddMMHHmm"); [yr,mo,d...

3 years ago | 1

| accepted

Answered
How to plot of a double integral if error "Matrix dimensions must agree."
Looking at the code, it appears that the intent of the for loop is to iterate over ‘x’ so subscripting it in each itaration appe...

3 years ago | 0

| accepted

Answered
Implementing a butterworth filter for ECG
The approach you tried using that design procedure (thank you for referring to it) will work, and should work regardless of the ...

3 years ago | 0

Answered
Colors above a level is not shown in a contour plot
The straight lines connecting the contours are because of the way the contour matrix (‘M’ here) are formatted. Do something l...

3 years ago | 0

Answered
Trying to plot a vertical line that stops at the intersection of a curved line in Matlab.
Try something like this — % clc % close all % clearvars phi =0:10:80; intstep = (phi(2)-phi(1))/10; %interpolation step ...

3 years ago | 1

| accepted

Answered
How do I determine the peak area with findpeak?
It would help to have an example of your data.. See if the approach in How can I calculate the area under each peak / display ...

3 years ago | 0

Answered
Grab polar intersection point coordinates from a plot
The intersections can be calculated directly from the information provided in the code. Creating a table of them in Cartesian...

3 years ago | 0

| accepted

Answered
How to compute the difference of the integrals of two functions (f(x) and j(x)) only over the portions where f(x)>j(x)
Perhaps this — %Part of no interest for the question (given for the code to run) Tmean_out=30; Tmax_out=40; Tadaptive=32; ...

3 years ago | 1

Answered
How do I highlight a certain area between two lines?
The ‘Time’ format makes absolutely no sense to me, and readmatrix returns NaN for that column, so the posted code image will not...

3 years ago | 0

| accepted

Answered
how to merge two columns(date,time) in .txt file
See my Answer to your other Question in Hi,how do I merge .txt file date and time column?

3 years ago | 0

Answered
Hi,how do I merge .txt file date and time column?
Try something like this — T1 = readtable('https://www.mathworks.com/matlabcentral/answers/uploaded_files/1238782/IMM2211.txt',...

3 years ago | 0

| accepted

Answered
for loop within an odes15 function, and plot on one graph
In order for ode15s not to complain, it will be necessary to supply a vector of 30 initial conditions to the ode15s call. Even...

3 years ago | 0

| accepted

Answered
Calculate daily standard deviation from timetable
Try something like this — DT = datetime('01-Dec-2022 00:00:00') + hours(0:720).'; Temperature = sin(2*pi*(0:numel(DT)-1)/24-0...

3 years ago | 0

| accepted

Answered
Step input applied for different seconds
Experiment with this approach — N = 1500; % ...

3 years ago | 0

| accepted

Answered
Incongruities in InputFormat in datetime
For those sort of formats, use 'uuuu' instead of 'yyyy'. (This should be more thorougly discussed in the documentation to avoid...

3 years ago | 0

Answered
Using for loops to subplot
One approach — x = linspace (1,3600,3600); y = randn(3600, 25); figure for k = 1:size(y,2) subplot(5, 5, k) plo...

3 years ago | 0

Load more