How to use switch statement
显示 更早的评论
I need to create a function through switch statements that are from one bound to the next bound. How would i use the case to display bound1 through bound2. Every variable falling within the bounds is included in the case.
i have
switch n
case {bound1 through bound2}
采纳的回答
更多回答(1 个)
Walter Roberson
2022-10-14
0 个投票
https://www.mathworks.com/help/matlab/ref/double.discretize.html and switch on the bin number.
类别
在 帮助中心 和 File Exchange 中查找有关 Animation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!