MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   简单的布尔值计算问题? (https://www.labfans.com/bbs/showthread.php?t=2502)

drongrn 2008-04-22 10:57

简单的布尔值计算问题?
 
s0 = false;
s1 = false;
s = true;
x = 0.5;
x(s0) = -inf;
x(s1) = inf;
x(~(s0|s1|s))=nan;
很简单的代码,可是我看不懂,这个不是函数又不好查,只好指望这里的高手了。
让人不解的是后面三句是在进行什么计算,好像都没有影响到x的值。还有x为vector时运行这个操作表示什么意思?
谢谢~

drongrn 2008-04-24 08:52

都两三天了,还是没有人了解这个问题么?


所有时间均为北京时间。现在的时间是 10:48

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