plot, Invalid first data argument
1 次查看(过去 30 天)
显示 更早的评论
I cannot find what's the problem with the below code. It gives me invalid fist data argument erorr. I want to plot four graphs on one figure.
Case={'Obs', 'Q0', 'Q3', 'Q4'};
for i=1:4
load(sprintf('Monthly_Mean_Precip_%s.mat',Case{i}));
end
for j=1:4
Precip{j}=sprintf('Monthly_Mean_Precip_%s',Case{j});
end
Ncomponent = 4;
for PrecipNo=1:Ncomponent
figure;
plot(Precip{PrecipNo});
end
0 个评论
回答(1 个)
Sean de Wolski
2013-2-21
dbstop if error
Then run the above *.m file. It will stop with the debugger and you'll be able to investigate what is going on.
7 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Specifying Target for Graphics Output 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!