i plotted a graph with three different set of values. how to specify them with manual colors and create a text box by notifying them

1 vue (au cours des 30 derniers jours)
plot( Y2(1:21,13),Z2plot(1:21,13),Y1(1:21,13),Z1plot(1:21,13),Y(1:21,13),Zplot(1:21,13));
xlabel('\fontsize{20}X - Pixels');
ylabel('\fontsize{20}Z plot');
title('\fontsize{22}integration 64*32');
i want to specify the colors for each different graph and notify them witha textbox to onside of the plot.

Réponses (1)

Image Analyst
Image Analyst le 27 Avr 2017
Try this:
plot(Y2(1:21,13), Z2plot(1:21,13), 'r-', 'LineWidth', 2);
hold on;
plot(Y1(1:21,13), Z1plot(1:21,13), 'g-', 'LineWidth', 2);
plot(Y(1:21,13), Zplot(1:21,13), 'b-', 'LineWidth', 2););
grid on;
xlabel('\fontsize{20}X - Pixels');
ylabel('\fontsize{20}Z plot');
title('\fontsize{22}integration 64*32');
legend('Z2plot', 'Z1plot', 'Zplot');

Community Treasure Hunt

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

Start Hunting!

Translated by