matrix multiple rows with the same value

hello i want to have two times the same row in a matrix. is there a command for this?
Right now i write it like this:
x = [20:145:600;20:145:600]

 采纳的回答

repmat([20:145:600],2,1)
ans = 2×5
20 165 310 455 600 20 165 310 455 600

1 个评论

thank you. how do I do that if I want to have this matrix still under there?
[54:145:634]

请先登录,再进行评论。

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Resizing and Reshaping Matrices 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by