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일

1 개 추천

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에 대해 자세히 알아보기

질문:

2021년 4월 21일

댓글:

2021년 4월 21일

Community Treasure Hunt

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

Start Hunting!

Translated by