matrix multiple rows with the same value

24 ビュー (過去 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 Center および File ExchangeMultidimensional Arrays についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by