Simulation for a project in Robotics

Status
Not open for further replies.

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
 

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
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…