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

4 次查看(过去 30 天)
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.

回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 Multidimensional Arrays 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by