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 日

0 投票

x = data(:,1);
y = data(:,2);

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で MATLAB についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by