basic code question

4 ビュー (過去 30 日間)
John
John 2012 年 3 月 22 日
Hello,
Say I have a vector 'data' with 2 columns.
What would be the code to set x = to the first column and y equal to the second column?
Kind Regards
John

採用された回答

Walter Roberson
Walter Roberson 2012 年 3 月 22 日
x = data(:,1);
y = data(:,2);

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