为什么我不能在Octave中创建uicontrol对象,而我可以在Matlab中创建?

时间:2017-05-11 09:55:23

标签: matlab octave matlab-figure

我正在使用Octave 4.0.3和qt图形工具包。我正在尝试使用以下代码制作带有按钮的面板:

clear all
close all
h = figure;
hp = uipanel('Title','Main Panel','FontSize',12,...
             'BackgroundColor','red',...
             'Position',[.25 .1 .67 .67]);
b=uicontrol('Parent',hp,'Visible','on');

它适用于MATLAB,但不适用于Octave。

0 个答案:

没有答案