how to plot all the loops one one graph

4 ビュー (過去 30 日間)
liu James
liu James 2016 年 12 月 15 日
コメント済み: liu James 2016 年 12 月 15 日
I have this loop written, but its providing an error at the same time and not providing all the graphs.
for i=1:length(time)
plot(time{i}(21:end,1),open{i}(21:end,1)...
time{i}(21:end,1),upper_channel{i},...
time{i}(21:end,1),lower_channel{i},...
time{i}(21:end,1),middle_value{i});
end
Error: File: setParam.m Line: 109 Column: 6
Unexpected MATLAB expression.
I've attached the file as well.

採用された回答

KSSV
KSSV 2016 年 12 月 15 日
You forgot to put a comma..
load plot.mat ;
for i=1:length(time)
plot(time{i}(21:end,1),open{i}(21:end,1),...
time{i}(21:end,1),upper_channel{i},...
time{i}(21:end,1),lower_channel{i},...
time{i}(21:end,1),middle_value{i});
end
  3 件のコメント
José-Luis
José-Luis 2016 年 12 月 15 日
hold on
before your first plot()
liu James
liu James 2016 年 12 月 15 日
perfect thanks Jose

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGraphics Performance についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by