フィルターのクリア

How can I plot the first 1000 numbers in my matrix?

11 ビュー (過去 30 日間)
Greg Smith
Greg Smith 2018 年 6 月 4 日
コメント済み: Greg Smith 2018 年 6 月 5 日
I have a 15364 x 6 matrix and I only want to plot the first 167 rows. How can I transform my 15364x6 into a 167x6 while keeping all the numbers in order?

回答 (2 件)

Sid Parida
Sid Parida 2018 年 6 月 4 日
Let A be the original matrix this should do it:
B = A(1:167, :)
  1 件のコメント
Greg Smith
Greg Smith 2018 年 6 月 5 日
I get the following error:
Index in position 1 exceeds array bounds (must not exceed 1).

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


Honglei Chen
Honglei Chen 2018 年 6 月 4 日
You can do
y = x(1:167,:)
where x is the original data matrix.
HTH

カテゴリ

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