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 (최근 30일)
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.

답변 (1개)

Image Analyst
Image Analyst 2017년 4월 27일
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');

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by