Why doesn't plot show desired values from my array?

10 Ansichten (letzte 30 Tage)
Emma
Emma am 17 Apr. 2013
Row array aVals(1 : 10) contains pi for each value.
plot(aVals(1:10)
gives the expected result:
plot(aVals(5:10)
fails to plot some of the data:
what't wrong? how do I fix that?

Antworten (1)

Emma
Emma am 17 Apr. 2013
Sorry, I figured it out.
plot(5:10, aVals(5:10)

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by