How can write in MATLAB the following expression?

2 ビュー (過去 30 日間)
Zar
Zar 2023 年 1 月 8 日
回答済み: Alan Stevens 2023 年 1 月 8 日
|0>=1
0
0
|1>= 0
1
0
  1 件のコメント
Jan
Jan 2023 年 1 月 8 日
Without any explanations the readers have to guess, what this should mean. This is not a useful way to ask a question. Please read: How to ask a good question .

サインインしてコメントする。

採用された回答

Alan Stevens
Alan Stevens 2023 年 1 月 8 日
Try
ket0 = [1; 0; 0]
ket1 = [0; 1; 0]

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeQuantum Mechanics についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by