How can I get an array so that it forms a matrix with only two columns?

1 visualización (últimos 30 días)
kiruthika r
kiruthika r el 26 de Oct. de 2015
Respondida: Ilham Hardy el 26 de Oct. de 2015
I have to get an array for a data to store my x-axis and y-axis value so that it forms a matrix with only two columns.

Respuestas (1)

Ilham Hardy
Ilham Hardy el 26 de Oct. de 2015
Say,
x = 1:5;
y = 11:15;
xy = [x',y'];
Is this what you want?

Categorías

Más información sobre Multidimensional Arrays 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