0x1 empty double row vector

5 Ansichten (letzte 30 Tage)
Kenneth Bisgaard Cristensen
Kenneth Bisgaard Cristensen am 11 Jul. 2020
Hi,
When i try to solve this:
x=(-200:-175:-150:-125:-100:-75:-50:-25:0:20:40:60:80:100)
f1=[5E-08 -3E-05 -0.0058 1.0479 177.56]
y1=polyval(f1,x)
plot(x,y1)
I says: 0x1 empty double row vector
It works with only positive numbers, how do i get it to work with the negative numbers?

Akzeptierte Antwort

madhan ravi
madhan ravi am 11 Jul. 2020
x = [-200:25:0, 20:20:100]
  1 Kommentar
Kenneth Bisgaard Cristensen
Kenneth Bisgaard Cristensen am 11 Jul. 2020
Thsank you so much, that was a huge help :)

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Simulink finden Sie in Help Center und File Exchange

Produkte


Version

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by