From: dantimatter on
Hello All,

Simple problem: every column of an 81x128 matrix (let's call it A) is
a trajectory that I'd like plot against the same coordinates values
(in an 81x1 matrix called t). I'm sure that there's a simple way to
do this that doesn't involve me writing out

plot(t,A(:,1),t,A(:,2),...,t,A(:,128));

explicitly, but I don't know what it is. What do you think?

Thanks!
dan
From: Matt Fig on


A =sort(rand(3,4),2)
t = [1;2;3]
plot(t,A(:,1),t,A(:,2),t,A(:,3),t,A(:,4))
figure
plot(t,A)