I am trying to port a script from Matlab to Octave. The one function that I miss is uicontrol(), for displaying togglebuttons and pushbuttons.
On SO there is this question: Implementation of Matlab's uicontrol in Octave?
At that time, uicontrol() was not implemented in Octave, but since 3.6.N, it is advertised as being implemented: http://www.octave.org/wiki/index.php?title=FAQ#Why_are_the_developers_planning_to_replace_Gnuplot_with_an_OpenGL_backend.3F
However, after installing octave 3.6.2 on Ubuntu Quantal, I have this error:
octave:1> uicontrol
ans=-1.8402
error: __go_draw_figure__: unknown object class, uicontrol
error: called from:
error: /usr/share/octave/3.6.2/m/plot/private/__go_draw_figure__.m at line 181, column 15
error: /usr/share/octave/3.6.2/m/plot/__gnuplot_drawnow__.m at line 86, column 5
However, the /usr/share/octave/3.6.2/m/plot/uicontrol.m is existing.
Any help? Thank you.
I use the MSVC/win32 version of Octave 3.6.2; this comes with QtHandles, it works with uicontrol (tested only with basic widgets – buttons, textboxes).