legend is not showing
11 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
sivalogan satchithanandamoorthy
am 27 Jun. 2017
Kommentiert: Walter Roberson
am 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 Kommentare
Akzeptierte Antwort
Walter Roberson
am 27 Jun. 2017
legend([legendInfo; legendIn2])
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Legend finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!