10-11.txt
来自「matlab7入门教程」· 文本 代码 · 共 21 行
TXT
21 行
%例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 + =
减小字号Ctrl + -
显示快捷键?