MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   资料存档 (https://www.labfans.com/bbs/forumdisplay.php?f=72)
-   -   Matlab中的三元运算符 (https://www.labfans.com/bbs/showthread.php?t=22430)

poster 2019-12-05 17:20

Matlab中的三元运算符
 
有没有一种输入方式,例如:

var = (cond) ? true : false; 还是我们必须使用这种格式?

if (cond) true else false end

[url=https://stackoverflow.com/q/5594937]更多&回答...[/url]


所有时间均为北京时间。现在的时间是 23:33

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.