plotting 2 vectors of different

Hi, i got one vector that is 120 rows whilst the other is 60. How can i plot them in the same figure?

 Accepted Answer

with hold on.
figure
plot(x1)
hold on
plot(x2)

2 Comments

What do u mean with hold on ?
It means that matlab keeps plotting on the same figure. Have you tried the script with your vector instead of x1 and x2?

Sign in to comment.

More Answers (0)

Asked:

AA
on 24 Dec 2014

Commented:

on 24 Dec 2014

Community Treasure Hunt

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

Start Hunting!