Uicontrols: Difference between revisions

Jump to navigation Jump to search
76 bytes added ,  13 July 2020
m
m (→‎uicontrols: Build a GUI in GNU Octave: Use syntax highlighter.)
Line 15: Line 15:
[[File:imageViewer1.png]] [[File:imageViewer2.png]]
[[File:imageViewer1.png]] [[File:imageViewer2.png]]


{{Code|imageViewer example|<pre>
{{Code|imageViewer example|<syntaxhighlight lang="octave">
%% In file 'imageViewer.m'
%% In file 'imageViewer.m'
function imageViewer ()
function imageViewer ()
Line 54: Line 54:
   axis image off
   axis image off
end
end
</pre>}}
</syntaxhighlight>}}


Then run <code>imageViewer()</code> from your terminal:
Then run <code>imageViewer()</code> from your terminal:
Line 64: Line 64:
[[File:demo_uicontrol1.png]]
[[File:demo_uicontrol1.png]]


{{Code|demo_uicontrol.m|<pre>
{{Code|demo_uicontrol.m|<syntaxhighlight lang="octave">
## 20.03.2017 Andreas Weber <andy@josoansi.de>
## 20.03.2017 Andreas Weber <andy@josoansi.de>
## Demo which has the aim to show all available GUI elements.
## Demo which has the aim to show all available GUI elements.
Line 254: Line 254:
guidata (gcf, h)
guidata (gcf, h)
update_plot (gcf, true);
update_plot (gcf, true);
</pre>}}
</syntaxhighlight>}}


[[Category:Examples]]
[[Category:Examples]]

Navigation menu