matlab NaN
时间: 2023-08-26 12:19:28 浏览: 88
在MATLAB中,NaN表示“不是一个数字”,是一种特殊的值。NaN在数学运算中起到一个标记的作用,用来表示无效或未定义的结果。NaN可以用来占位、保持矩阵的规则性,或者表示计算过程中出现的非数字字符。在MATLAB中,NaN的比较结果有一些特殊的规则。例如,使用NaN进行逻辑运算时,NaN的结果通常都是false。此外,不同的NaN之间是不相等的。例如,a==NaN的结果将全部为false,而a~=NaN的结果将全部为true。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [Matlab:无穷和 NaN](https://blog.csdn.net/it_xiangqiang/article/details/127794253)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [【Matlab技巧——矩阵运算、Nan字符处理】](https://blog.csdn.net/weixin_43347280/article/details/124852047)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [MATLAB NaN详解](https://blog.csdn.net/weixin_31205797/article/details/116030329)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文