请教matlab的exist函数的用法?

请教matlab的exist函数的用法?
if exist('dpos')==0 % dpos
dpos = 0;
end 其中dops=[1;2;3]
if length(pos0)==1 % pos0
pos0 = [pos0;0;0];
end 其中pos0=[0.1; 0.2;0.3]
这两段程序怎么解释的呢
helenxiongl 1年前 已收到1个回答 举报

sndalys 幼苗

共回答了16个问题采纳率:87.5% 举报

官方帮助,建议阅读:http://www.***.cn/help/techdoc/ref/exist.html
如果不存在dpos这个东西(变量,文件...)
dpos=0
如果ops的长度为1
pos0=[pos0;0;0]

1年前

9
可能相似的问题
Copyright © 2024 YULUCN.COM - 雨露学习互助 - 16 q. 3.276 s. - webmaster@yulucn.com