1,852
edits
(Add Category:Examples.) |
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|< | {{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 | ||
</ | </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|< | {{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); | ||
</ | </syntaxhighlight>}} | ||
[[Category:Examples]] | [[Category:Examples]] |