How to Create/Modify for matrices or matrix
Mostra commenti meno recenti
K=5
matA= [1 2 ..4 K]
matB=[matA matA matA matA matA]
matB=[1 2 3 4 5 1 2 3 4 5 1 2 3 4 5 1 2 3 4 5 1 2 3 4 5]
How to operate this equation matB?
Risposta accettata
Più risposte (1)
Les Beckham
il 12 Apr 2022
Modificato: Les Beckham
il 12 Apr 2022
K=5;
matA = 1:K
matB = repmat(matA, 1, K)
Categorie
Scopri di più su Linear Algebra in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!