Jan 19, 2012 #1 K karthickanand Newbie level 1 Joined Jan 19, 2012 Messages 1 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Activity points 1,285 hello sir i want to know how to plot a simple x-y plot using matlab program x and y can be any values
hello sir i want to know how to plot a simple x-y plot using matlab program x and y can be any values
Jan 19, 2012 #2 blooz Advanced Member level 2 Joined Dec 29, 2010 Messages 560 Helped 121 Reputation 242 Reaction score 116 Trophy points 1,343 Location India Activity points 4,985 Code: x=[ 1 2 4 5 6 8.0987]; y=[ 1 2 6 8 6 5.90 ]; plot(x,y) title('sample'); xlabel('X '); ylabel('Y'); grid on Output
Code: x=[ 1 2 4 5 6 8.0987]; y=[ 1 2 6 8 6 5.90 ]; plot(x,y) title('sample'); xlabel('X '); ylabel('Y'); grid on Output