creating a matrix from vectors

1 次查看(过去 30 天)
hallo, i have a vector Ta [12x1] and k[12x1] how could i create a matrix Ta_new [12,31] that the first column is Ta, the second column is Ta+k, the third column would be Ta+2k and so on.. ?

采纳的回答

Alan Stevens
Alan Stevens 2020-8-28
Here's one way:
Ta_new = Ta;
for i = 1:30
Ta_new = [Ta_new Ta+i*k];
end

更多回答(0 个)

类别

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

标签

Community Treasure Hunt

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

Start Hunting!

Translated by