matlab中switch case语句
时间: 2023-10-18 20:57:10 浏览: 99
在MATLAB中,switch-case语句用于根据选择判断量的不同值执行不同的代码块。与其他编程语言的switch-case语句不同的是,在MATLAB中,只有第一个满足条件的case语句会被执行,之后的case语句不再被判断。因此,在MATLAB中不需要使用break语句来阻止继续执行后面的case条件语句。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [matlab switch case语句用法](https://blog.csdn.net/yundanfengqing_nuc/article/details/50424259)[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: 50%"]
- *3* [Matlab中switch_case_otherwise语句详解](https://blog.csdn.net/zhangkaikai36/article/details/127166948)[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: 50%"]
[ .reference_list ]
阅读全文