Vector must be the same length error
1 回表示 (過去 30 日間)
古いコメントを表示
here i was trying to plot graph but it showing me this error
load('B0005.mat');
SoC=xlsread('E:\SoC.xlsx');
for i=87:9:100
Type=B0005.cycle(i).type;
if strcmp(Type,'charge')==1
Volt=B0005.cycle(i).data.Volt;
plot(B0005.cycle(i).data.Volt, SoC);
hold on;
end
end
0 件のコメント
採用された回答
madhan ravi
2018 年 10 月 30 日
Sizes of B0005.cycle(i).data.Volt and SoC should be the same if you want to plot them if not make some change such that they are equal
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で View and Analyze Simulation Results についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!