matrix multiple rows with the same value

조회 수: 21 (최근 30일)
TheDice
TheDice 2021년 4월 21일
댓글: TheDice 2021년 4월 21일
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
  댓글 수: 1
TheDice
TheDice 2021년 4월 21일
thank you. how do I do that if I want to have this matrix still under there?
[54:145:634]

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

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