scaling a vector from 352800x1 to 300000x1 by cutting last 52800 row elements?

1 回表示 (過去 30 日間)
i have a 352800x1 vector . now i want to take only 300000 row elements .how can i cut last 352800-300000=52800 elements and make it a 300000x1 vector ??

採用された回答

Jonathan Sullivan
Jonathan Sullivan 2013 年 2 月 12 日
x = rand(352800,1);
x(300001:end) = [];
size(x)
  1 件のコメント
MD.FAISAL
MD.FAISAL 2013 年 2 月 15 日
編集済み: MD.FAISAL 2013 年 2 月 15 日
it can also be done by using
y=X(1:300000) ; thx anyway :)

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by