Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试图寻找上述问题的答案,但无法提出适当的表述。那么,a=(b==c); 是什么意思?在matlab中做。谢谢
如果您阅读a=(b==c);,您会看到
a=(b==c);
a=(b==c);你分配(b==c)给a
(b==c)
a
(b==c)意味着b equals c?这将导致trueor false。
b equals c?
true
false
所以简而言之,你分配true给a当 b 等于 c 时。如果不是false,则分配给a.
问:等于b?c
b
c
答案在命题中b==c。
b==c
问题:如何存储命题的逻辑值?
答:在变量中a = (b==c)。
a = (b==c)