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};

 採用された回答

KALYAN ACHARJYA
KALYAN ACHARJYA 2019 年 10 月 20 日
編集済み: KALYAN ACHARJYA 2019 年 10 月 20 日

0 投票

B{1}
Do call other cell array in simillar ways.

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で Multidimensional Arrays についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by