legend is not showing
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
sivalogan satchithanandamoorthy
el 27 de Jun. de 2017
Comentada: Walter Roberson
el 27 de Jun. de 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 comentarios
Respuesta aceptada
Walter Roberson
el 27 de Jun. de 2017
legend([legendInfo; legendIn2])
Más respuestas (0)
Ver también
Categorías
Más información sobre Legend en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!