フィルターのクリア

How to plot 2 columnof an array ?

1 回表示 (過去 30 日間)
HamidReza Saleh
HamidReza Saleh 2017 年 4 月 23 日
コメント済み: HamidReza Saleh 2017 年 4 月 23 日
Hi
is there any way to plot two last column of an array in the same figure ? my array is 40001x3 and i want to plot only the two column of it
thanks for suggestion

採用された回答

amine&&
amine&& 2017 年 4 月 23 日
Hello, if you have an array like
A = [69.1687 67.7771 68.3709 70.7292 70.8961 65.8046 66.6392 74.2880 69.9386 69.7100 66.2853 67.0199; 68.0923 66.0579 66.2874 69.2144 65.8344 65.6781 67.8803 73.7639 67.3430 67.1914 67.3368 66.7132];
you can use,
plot([A(1,:);A(2,:)]);
  3 件のコメント
amine&&
amine&& 2017 年 4 月 23 日
編集済み: amine&& 2017 年 4 月 23 日
For the example that i already give you can use,
plot(A(1,:),'b');
hold on;
plot(A(2,:),'r');
hold off
You can apply it to your case.
HamidReza Saleh
HamidReza Saleh 2017 年 4 月 23 日
good idea , its working

サインインしてコメントする。

その他の回答 (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