フィルターのクリア

plot graph from array

2 ビュー (過去 30 日間)
monkey_matlab
monkey_matlab 2016 年 10 月 15 日
回答済み: Image Analyst 2016 年 10 月 15 日
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 日
Assumning column 1 is x and column 2 is y
plot(Class1(:, 1), Class1(:, 2), 'b*-', 'LineWidth', 2, 'MarkerSize', 10);
grid on;

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLine Plots についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by