Replacing arrays within a matrix
9 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Really quick question.
How do I replace in one command for instance, in a matrix of 4x4, the first two rows by a vector v, and the other two rows by a vector u?
0 Kommentare
Antworten (1)
KSSV
am 27 Feb. 2018
As you are replacing all the elements of the matrix..why you want to go for replace? You create a different matrix itself.....
u = rand(1,4) ;
v = rand(1,4) ;
iwant = [u ; u ;v ;v ]
0 Kommentare
Siehe auch
Kategorien
Mehr zu Matrices and 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!