Azzera filtri
Azzera filtri

basic code question

1 visualizzazione (ultimi 30 giorni)
John
John il 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

Risposta accettata

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

Più risposte (0)

Categorie

Scopri di più su Get Started with MATLAB in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by