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

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

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

4 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) ...

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

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

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

4 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. (...

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

4 years ago | 0

| accepted

Answered
Error bars and legend order inconsistent?
It is difficult to follow your code. Perhaps something like this — plot(x,Norm_Opt{j},'Color',cmapUS(((US_Factor(nUS)/US_Fa...

4 years ago | 0

| accepted

Answered
Finding peaks greater than a set value
‘Any ideas?’ Yes. None of the identified peaks meet the criteria you set. See my latest Comment to your earlier post How ...

4 years ago | 0

| accepted

Answered
how to add arrow on phase portrait
Use the quiver function — to = 0; tf = 30; tspan = to:0.1:tf; plotArrows = @(m) quiver(m(:,1), m(:,5), gradient(m(...

4 years ago | 0

| accepted

Answered
if statement inside of a Function is working only in certain conditions
I would just set this up as an anonymous function — capacitorVoltage = @(t) 5*(t<0); t=-2:0.2:5; v_c=capacitorVoltage(t)...

4 years ago | 2

Answered
Finding peaks with a set amplitude range?
‘It just returns a bunch of zeros even though I told it not to. Any ideas?’ It may seem that a logical vector is returning ze...

4 years ago | 0

Answered
Superimpose three solutions onto a direction field
Use the hold function to plot m,ore than one set of data on an axes. I do not know what the second one is, however this will ...

4 years ago | 0

Answered
Integral from 0 to inf with imaginary numbers takes too long
First, the Symbolic Math Toolbox is not going to be as efficient as direct numerical calculations. Second, you never told the...

4 years ago | 0

| accepted

Answered
Find phase plot between input and output experimental data?
I am not certain what function created that plot (it might have been the System Identification Toolbox bode function.) See if...

4 years ago | 0

Answered
Symbols in a transfer function:
The Control System Toolbox functions require numerical values. It is possible to create an anonymous function with your code,...

4 years ago | 1

| accepted

Answered
New to filter design: Designing filters at very low frequencies (mHz) on logarithmic frequency scale
It is quite common for a transfer function implementation to be unstable. The solution is to use zero-pole-gain output from the...

4 years ago | 0

Load more