📄 10-11.txt
字号:
%例10-11 try-catch模块的应用举例。
>> X=magic(4);
>> Y=ones(4,3);
>> try
Z=X*Y
catch
Z=nan;
disp('X and Y is not conformable.')
end
>>Z
>> X=magic(4);
>> Y=ones(3,3);
>> try
Z=X*Y
catch
disp('Xand Y is not conformable.')
end
X and Y is not conformable.
>>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -