Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

Could anyone help me how to have all rows of matrix to be similar.

2 Ansichten (letzte 30 Tage)
jaah navi
jaah navi am 7 Okt. 2019
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
A=[1 2;
3 4;
5 6]
I want to make all rows of the matrix to be the same in the following manner
[1 2;
1 2;
1 2]
or
[ 3 4;
3 4;
3 4]
or
[5 6;
5 6;
5 6]
Could anyone please help on this.
  1 Kommentar
Adam
Adam am 7 Okt. 2019
Bearbeitet: Adam am 7 Okt. 2019
doc repmat
The code to do this is obvious but I'll leave it for you to work out from the documentation (though I'm sure there are plenty of other methods too).
And especially since you asked basically the same question last week without bothering to respond to my comment on that one.

Antworten (0)

Diese Frage ist geschlossen.

Community Treasure Hunt

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

Start Hunting!

Translated by