how to plot graph decimal points?

3 Ansichten (letzte 30 Tage)
kashika sharma
kashika sharma am 12 Mär. 2016
Beantwortet: Walter Roberson am 12 Mär. 2016
i want to plot a graph having values like-
x axis 0:10:100
y axis [26.34 25.66 21.86 18.21 15.04 11.08 9.93 8.68 6.65]
i am getting error like vector should be or same length. what does it mean and how to solve
i am new to matlab

Antworten (1)

Walter Roberson
Walter Roberson am 12 Mär. 2016
Match the values up. You are asking that y = 26.34 for x =0, that y = 25.66 for x = 10, that y = 21.86 for x = 20, that y = 18.21 for x = 30, that y = 15.04 for x = 40, that y = 11.08 for x = 50, that y = 9.93 for x = 60, that y = 8.68 for x = 70, that y = 6.65 for x = 80. You have now run out of y, but you still have x = 90 and x = 100 to plot for. What y value are you expecting for x = 90 and x = 100?

Kategorien

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

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by