From: Erik L on
hi,

I want to draw two row vectors, say:

A=[2 3 4 5], B=[6 7 5 4]
by using plot commond.

I need to see both on the same graph, for comparitive analysis. I am not talking about subplot.


thanks
From: Walter Roberson on
Erik L wrote:

> I want to draw two row vectors, say:
>
> A=[2 3 4 5], B=[6 7 5 4]
> by using plot commond.
>
> I need to see both on the same graph, for comparitive analysis. I am not
> talking about subplot.

plot(1:length(A),A,'o',1:length(B),B,'+');

Or

plot(A,'o');
line(1:length(B),B,'+'); %hold on is NOT needed if you use 'line'