how to put/get a matrix from array
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
reza hamzeh
am 20 Okt. 2019
Bearbeitet: KALYAN ACHARJYA
am 20 Okt. 2019
hi guys. i have 4 matrixes. i put them in a array. now i want to get the nth matrix from this array. i used B(1) (forexample) but it gives me [2×2 double].
plz help me. how i can get the nth matrix ?
s0=[1 0;0 1];
sx=[0 1;1 0];
sy=[0 -1i;1i 0];
sz=[1 0;0 -1];
B={s0 sx sy sz};
0 Kommentare
Akzeptierte Antwort
KALYAN ACHARJYA
am 20 Okt. 2019
Bearbeitet: KALYAN ACHARJYA
am 20 Okt. 2019
B{1}
Do call other cell array in simillar ways.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Resizing and Reshaping Matrices 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!