Plot editing inside a for loop
古いコメントを表示
Hi all,
I am busy solving several vectors inside a for loop. As each vector is solved I am trying to plot it before the values are overwritten in the next loop iteration. Additionally, I am comparing two methodologies for solving the vector, and therefore need to superimpose to plots on the figure with each loop. Due to the fact that both methods are so close this requires me to plot one line thicker than the other, and additionally one line must be dashed.
In the past i used the following method to plot inside a for loop:
colour = ['b','r','c','y'];
for i = 1:2
%arbitrary code that solves x,y,x2 and y2
plot(x,y,colour(i),x2,y2,colour(i+2))
end
How would i add additional plot editing such as linewidth and dashed lines to the above code?
Thank you in advance.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Annotations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!