legend is not showing
11 views (last 30 days)
Show older comments
sivalogan satchithanandamoorthy
on 27 Jun 2017
Commented: Walter Roberson
on 27 Jun 2017
for i=1:x %loop
figure(1)
hold on
plot(strain{i},stress{i});
legendInfo{i}=['Cycle',mat2str(cycle(i))]; %convert value to string
plot(Time{i},Value{i});
legendIn2{i}=['Simulink','DisplayName','numerical model',mat2str(cycle(i))];
hold all
end
legend(legendInfo,legendIn2)
for some reason only legendIn2 is being displayed in the plot. how to fix this? Any help would be much appricated.
siva
0 Comments
Accepted Answer
More Answers (0)
See Also
Categories
Find more on Legend in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!