Answered
How do I save a SINGLE value from the workspace?
‘Hi, is a data type 2x99. I need save the value x(:,1) when x(:,2) is near to 0. How I save this date.’ It depends what ‘near...

3 years ago | 0

Answered
Matlab bode plot with specific cut off frequency
The easiest option may be to define the radian frequency function: w = linspace(0, 1.5E+4, 1E+3)*2*pi; and then supply it as ...

3 years ago | 0

Answered
Keep getting a blank graph
First, you only use the first 0.06 seconds of the torque vector, so create a file with just those values. (I did that offline, ...

3 years ago | 1

Answered
Where is the option "Allow unstable model"
The only reference I can find (requiring an Interweb search) is step 6 in Estimate Transfer Function Models in the System Identi...

3 years ago | 0

| accepted

Answered
Multiplication matrix with strings
Perhaps this — syms k1 k2 m M = [k1-2*m,-k2;-k2,k2]*[1,2;4,6] % Symbolic Expression Mfcn = matlabFunction(M) ...

3 years ago | 0

Answered
How to find largest Peaks Values of signal and Save Corresponding X axis and Y Axis Values in MATLAB
Try this — LD = load('Dataset20230221.mat'); Dataset = LD.Dataset; X = Dataset(:,1); Y = Dataset(:,2); [pks,locs] = find...

3 years ago | 0

Answered
How to generate model output given a transfer function and input signal
If you have the time vector and the matching input vector, use the lsim function to generate the output, however a more robust a...

3 years ago | 1

| accepted

Answered
How to perform derivative of a random signal without finite difference schemes?
The derivative operation is by definition a highpass filter, and so will accentuate the noise. One option might be to filter th...

3 years ago | 1

| accepted

Answered
lscurve fit problem issue in Money Rivlin model
I am not certain what you want to do. Two independent variables may require one or two dependent variables, however with only...

3 years ago | 0

| accepted

Answered
Return a value in csv data at a specific point
Try this — T1 = array2table([sort(randi(1E+4, 12,1)) rand(12,1)*1E+3], 'VariableNames',{'Distance','Depth'}) Dep = interp1(...

3 years ago | 0

Answered
why is my plot blank?
Try something like this — LOGGER31 = readtable('https://www.mathworks.com/matlabcentral/answers/uploaded_files/1300315/LOGGER3...

3 years ago | 0

Answered
fill in the area in plot
Please see my Comment to your previous post. I do not know what parts you want to fill, so again, I filled each of them. C...

3 years ago | 0

| accepted

Answered
Meijjer G function implementation
The meijerG function exists in the Symbolic Math Toolbox. EDIT — (19 Feb 2023 mat 21:57) With respect to its being writte...

3 years ago | 1

Answered
find x or y at given point for f_cutoff, 0.1*f_cutoff and 10*f_cutoff
Use the interp1 funciton. I wrote a short utility program that does exactly that — % %Need to replace so it looks the same ...

3 years ago | 1

| accepted

Answered
How can I put an array containg multiple numbers into a matlab table?
Put the bounding box coordinates in a cell array — for k = 1:5 imageFiles(k,:) = sprintf('vehicleImages/image%05d.jpg',k)...

3 years ago | 0

Answered
How to save a symbolic function into a .txt file
Try something like this — syms t x(t) y(t) symFunc = y == sin(x) + cos(x) filename = 'Test.txt'; save(filename, 'symFun...

3 years ago | 0

Answered
How to remove extra labels from polarplot?
See PolarAxes Properties for all the options. th = rand(1,5)*2*pi; r = rand(size(th)); figure polarplot(th,r) Ax = gca;...

3 years ago | 0

Answered
Chebyshev type 2 filter comparison on bode plot
A 3D plot option— fc = 1000; fs = 8000; for k = 1:6 [b,a] = cheby2(k,50,fc/(fs/2)); bv{k} = b; av{k} = a; ...

3 years ago | 0

Answered
how to modify a plot
Extending the lines is straightforward. What region do you want to shade? I created patch objects for all of them, so choose...

3 years ago | 1

| accepted

Answered
plot a graph from loop
Plotting ‘R’ as a function of ‘V’ is relatively straightforward: figure plot(V, R) grid xlabel('V') ylabel('R') What do y...

3 years ago | 0

Answered
least square curve fitting on a nonlinear equation , set of data available
What you appear to be describing is the derivation of a linear least square regression. In that context, ‘linear’ implies ‘line...

3 years ago | 1

| accepted

Answered
smoothing the heart rate plot that connected with arduino
It is likely not possible to filter individual points. Save them to a vector and then process the vector. That would likely ...

3 years ago | 0

Answered
putting conditions on the axis intervals in fsurf
It is not possible to alter the X, Y, or Z data in an fsurf plot. Try this instead — Rhv = 0:0.1:3; Rlv = 0:0.1:2; [Rh,Rl...

3 years ago | 0

| accepted

Answered
Expected timetable data to be numeric.
It would help to have the data. I am not certain how the ‘date’ and ‘time’ values are being imported. One possibility: D...

3 years ago | 1

| accepted

Answered
Operator '*' is not supported for operands of type 'cell'.
Use the str2double function to convert the cell array of string variables to a numeric array (assuming all of them are numeric) ...

3 years ago | 0

Answered
Issue in table indexing
It would help to have the data, and a clearer description of what you want to do. The findpeaks function does not have to hav...

3 years ago | 1

| accepted

Answered
Matching a target time series to other time series using dynamic time warping
See if the Signal Processing Toolbox dtw function (introduced in R2016a), or related functions linked to in that page, will do w...

3 years ago | 1

Answered
How to find a list of dates from a timetable?
Try this — LD1 = load(websave('Date_Captured','https://www.mathworks.com/matlabcentral/answers/uploaded_files/1296975/Date_Cap...

3 years ago | 1

| accepted

Answered
How can I calculate a mean value of peak amplitude and area under the curve?
It always helps to have a signal to work with, so I found one from a previous pulse-plethysmograph post and am using it here. (...

3 years ago | 1

| accepted

Answered
Clarification of frd(response, frequency) inputs for SISO system
It would be helpful to know the context. That specific syntax does not appear to be valid for the frd function, at least to d...

3 years ago | 0

| accepted

Load more