basic code question

2 Ansichten (letzte 30 Tage)
John
John am 22 Mär. 2012
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

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 22 Mär. 2012
x = data(:,1);
y = data(:,2);

Weitere Antworten (0)

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by