Borrar filtros
Borrar filtros

basic code question

1 visualización (últimos 30 días)
John
John el 22 de Mzo. de 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

Respuesta aceptada

Walter Roberson
Walter Roberson el 22 de Mzo. de 2012
x = data(:,1);
y = data(:,2);

Más respuestas (0)

Categorías

Más información sobre Get Started with MATLAB en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by