matrix multiple rows with the same value

22 Ansichten (letzte 30 Tage)
TheDice
TheDice am 21 Apr. 2021
Kommentiert: TheDice am 21 Apr. 2021
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]

Akzeptierte Antwort

Stephan
Stephan am 21 Apr. 2021
repmat([20:145:600],2,1)
ans = 2×5
20 165 310 455 600 20 165 310 455 600
  1 Kommentar
TheDice
TheDice am 21 Apr. 2021
thank you. how do I do that if I want to have this matrix still under there?
[54:145:634]

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Multidimensional Arrays finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by