aa = 3;
switch aa
case 1
test(1,1)
case 2
test(1,2)
case 3
test(1,3)
otherwise
test(1,0)
end
function y = test(a,b)
y = a+b;
end
最后
以上就是难过音响最近收集整理的关于MATLAB条件分支switch的使用的全部内容,更多相关MATLAB条件分支switch内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复