How to read a single column for specific data?

2 ビュー (過去 30 日間)
Ara
Ara 2012 年 12 月 31 日
Hi,
How can I read this column just for specific data?
x=[1;2;3;4;5;6;7;8;9;10];
I just want to read 1,2,3 and 9, 10 and calculate some formula just for these data.
Could you please guide me how?

採用された回答

Walter Roberson
Walter Roberson 2012 年 12 月 31 日
How do you know which data you want to "read"? Is it the 1st, 2nd, 3rd, 9th and 10th positions? If so then
x([1 2 3 9 10])
  5 件のコメント
Walter Roberson
Walter Roberson 2012 年 12 月 31 日
data(data(:,1) < 10 | data(:,1) >= 22, :)
Ara
Ara 2012 年 12 月 31 日
Thank you, walter. Happy New Year!

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

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by