フィルターのクリア

Error plotting invalid second data argument

1 回表示 (過去 30 日間)
Eliah Verbeemen
Eliah Verbeemen 2018 年 5 月 25 日
コメント済み: Maria 2018 年 5 月 25 日
I like to make 2 PLOTS, but I getan error messages. I use the same x-values, a cell array I have made PLOTS with hese values earlier. The problem are caused by the Y values. The PLOTs (called real) gives the error Invalid second data argument. Although i used the same code the Y-values dont look the same. the values TC, TC2 and sf/IR are
if true
% code
TC = cell2mat(TC);
TC2 = cell2mat(TC2);
SF = cell2mat(SF);
for U = 1:b
temperatuurreal{1,U}(1:TC(1,U),1)=celldata{1,U}(1:TC(1,U),6);
temperatuurreal{1,U}(TC(1,U)+1:TC(1,U)+SF(1,U),1)=celldata{1,U}(TC(1,U)+1:TC(1,U)+SF(1,U),8);
temperatuurreal{1,U}(TC(1,U)+SF(1,U)+1:TC(1,U)+SF(1,U)+TC2(1,U),1)=celldata{1,U}(TC(1,U)+SF(1,U)+1:TC(1,U)+SF(1,U)+TC2(1,U),6);
temperatuurset{1,U}(1:TC(1,U),1)=celldata{1,U}(1:TC(1,U),5);
temperatuurset{1,U}(TC(1,U)+1:TC(1,U)+SF(1,U),1)=celldata{1,U}(TC(1,U)+1:TC(1,U)+SF(1,U),7);
temperatuurset{1,U}(TC(1,U)+SF(1,U)+1:TC(1,U)+SF(1,U)+TC2(1,U),1)=celldata{1,U}(TC(1,U)+SF(1,U)+1:TC(1,U)+SF(1,U)+TC2(1,U),5);
end
laatste=b;
%axis([tMin tMax 0.5 2.2]);
while laatste > 0
figure('Name','setpoint and real')
%plot(x{1,b}(:,1),temperatuurreal{1,b}(:,1))
hold on
plot(x{1,b}(:,1),temperatuurset{1,b}(:,1))
title('setpointenreal')
xlabel('tijd(s)')
ylabel('temperatuur(C)')
legend(num(1,1:b))
b=b-1;
end
end
  3 件のコメント
Eliah Verbeemen
Eliah Verbeemen 2018 年 5 月 25 日
編集済み: Eliah Verbeemen 2018 年 5 月 25 日
I provided an example of TC. SF/IR en TC2 are comparable.
Maria
Maria 2018 年 5 月 25 日
I do not see any .mat attachment. Am I missing something?

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeLine Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by