how to switch the value of a boolean.
古いコメントを表示
Hi, is there any function to do the following :
a = true;
b = someFunction(a)
==> b = false
b = sumeFunction(b)
==> b = true;
thank you.
採用された回答
その他の回答 (1 件)
James Tursa
2012 年 9 月 7 日
b = ~a;
c = ~b;
カテゴリ
ヘルプ センター および File Exchange で Simulink についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!