In matlab you can use plot() with matrix input, which is very fast and convenient. However, when I try and spec the lines I cannot find a way. I am stuck decomposing what I have then feeding each portion a spec rather painstakingly.
Example :
clear; clc;
x = [1 2 3;
4 5 6;
7 8 9];
y = [1 4 7;
2 5 8;
3 6 9];
subplot(2,1,1)
plot(x,y)
subplot(2,1,2)
plot(x(:,1),y(:,1),':.',...
x(:,2),y(:,2),'--',...
x(:,3),y(:,3),':.b')
How can I spec subplot one without decomposing it like in subplot 2?