matlab判断某个变量是否存在

if ~exist('data_need','var')||isempty(data_need)==1

  disp('变量不存在!');

猜你喜欢

转载自www.cnblogs.com/yibeimingyue/p/12102946.html
今日推荐