Graph not showing up

Answers (1)

Use the axis function to see it:
a=9; b=2; c=5; d=5;
x=[ a a a b b c];
y=[ b c d c d d];
plot(x,y)
axis([0 10 0 6])

Categories

Find more on Graph and Network Algorithms in Help Center and File Exchange

Asked:

on 16 Mar 2020

Answered:

on 16 Mar 2020

Community Treasure Hunt

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

Start Hunting!