Hello, I have this array:
Class1 = [1 0; 0.5 1; 0.5 1.5];
How do I go about plotting the 3 points from Class1? If I use
plot(Class1)
I do not get the correct plot.

 채택된 답변

Image Analyst
Image Analyst 2016년 10월 15일

1 개 추천

Assumning column 1 is x and column 2 is y
plot(Class1(:, 1), Class1(:, 2), 'b*-', 'LineWidth', 2, 'MarkerSize', 10);
grid on;

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

제품

태그

질문:

2016년 10월 15일

답변:

2016년 10월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by