Hi, is there any function to do the following :
a = true;
b = someFunction(a)
==> b = false
b = sumeFunction(b)
==> b = true;
thank you.

 採用された回答

Honglei Chen
Honglei Chen 2012 年 9 月 7 日
編集済み: Honglei Chen 2012 年 9 月 7 日

1 投票

b = ~a;
c = ~b;
or if you are looking for the functional form
b = not(a);
c = not(b);

その他の回答 (1 件)

カテゴリ

ヘルプ センター および File ExchangeSimulink についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by