马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?我要加入
x
h = figure('ToolBar','none');
ht = uitoolbar(h);
a = [.05:.05:0.95];
b(:,:,1) = repmat(a,19,1);
b(:,:,2) = repmat(a,19,1);
b(:,:,3) = repmat(flipdim(a,2),19,1);
hpt = uipushtool(ht,'CData',b,'TooltipString','Hello');
这是 help里面的例子,编译后提示有错误
??? Attempt to execute SCRIPT uitoolbar as a function.
Error in ==> uitoolbar at 2
ht = uitoolbar(h);
请问错在哪里,应该怎么修改?谢谢 |