legend in subplot graph

3 visualizaciones (últimos 30 días)
Chaudhary P Patel
Chaudhary P Patel el 29 de En. de 2021
Comentada: Alex Alex el 29 de En. de 2021
how to give legend for multiple graph case.
subplot(3,1,1)
plot(tn,transpose(utdelt(1,:)),'-r');
title('Displacement in X-Direction')
xlabel('time(sec)');
ylabel('Displacement (m)');
hold on
plot(tn,transpose(utdelt(28,:)),'-g');
title('Displacement in X-Direction')
xlabel('time(sec)');
ylabel('Displacement (m)');

Respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by