Error using plot: Value not a numeric scalar
25 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Romio
am 30 Jan. 2020
Kommentiert: Bahubalendruni Bindu Satya Narayana Sai Varma
am 26 Mai 2021
I am using this running average function to smooth out dome noisey data.
function y = RunningAvg(x,w)
wts = ones(1, w) / w
new = conv(x, wts, 'same');
end
However, when I plot the filtered signal, I get this error massage
Error using plot
Value not a numeric scalar
7 Kommentare
Walter Roberson
am 31 Jan. 2020
Yes, it was that line
plot(t,x_smoothed,'linewidth','2')
that we were looking for.
Antworten (1)
Walter Roberson
am 31 Jan. 2020
plot(t,x_smoothed,'linewidth','2')
Line widths must be numeric.
plot(t,x_smoothed,'linewidth',2)
2 Kommentare
Siehe auch
Kategorien
Mehr zu Electrical Block Libraries finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
