replace element in matrix with matrix
Ältere Kommentare anzeigen
i have a matrix say example
with expansion factor 3 i.e each element in matrix should be replaced by the identity matrix of order 3x3 and depending on matrix element it will circular shift by the lement of matrix
e.g i have a matix [2 1 0,-1 0 2, 1 0 0] >>>>>>> -1 will be replaced by all zero matrix of order 3x3
>>>>>> 0 will be the identity matrix of order 3x3; 1 is the identity matrix of order 3x3 but circ shift by 1 && 2 the identity matrix of order 3x3 cirshift by 2
please let know any ideas to do this
thanks
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Matrix Operations and Transformations finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!