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일

0 개 추천

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

liu James
liu James 2016년 12월 15일
thanks!!Is there a way to plot all 34 graphs vs just the last one? Cause it seems to just show the last one?
hold on
before your first plot()
liu James
liu James 2016년 12월 15일
perfect thanks Jose

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 MATLAB에 대해 자세히 알아보기

태그

질문:

2016년 12월 15일

댓글:

2016년 12월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by