basic code question

1 次查看(过去 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 CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by