Effacer les filtres
Effacer les filtres

matrix multiple rows with the same value

15 vues (au cours des 30 derniers jours)
TheDice
TheDice le 21 Avr 2021
Commenté : TheDice le 21 Avr 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]

Réponse acceptée

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

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Multidimensional Arrays dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by