matrix multiple rows with the same value

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

采纳的回答

Stephan
Stephan 2021-4-21
repmat([20:145:600],2,1)
ans = 2×5
20 165 310 455 600 20 165 310 455 600

更多回答(0 个)

类别

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

Community Treasure Hunt

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

Start Hunting!

Translated by