Effacer les filtres
Effacer les filtres

basic code question

1 vue (au cours des 30 derniers jours)
John
John le 22 Mar 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

Réponse acceptée

Walter Roberson
Walter Roberson le 22 Mar 2012
x = data(:,1);
y = data(:,2);

Plus de réponses (0)

Catégories

En savoir plus sur Get Started with MATLAB dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by