nav-left cat-right
cat-right
Matthias Pospiech > Articles by: pospiech

enable zoom in gui

Matlab provides the function of making axes zoomable in a gui (zoom reference). In a matlab gui this is enable by using this code: hZoom = zoom; setAllowAxesZoom(hZoom,handles.axes,true);...

change extension of filename

Very often I tend to save the results of a file under the same name, but with a modified extension. This code shows how to achieve this % change extension [~, ~, ext] = fileparts(FileName); FileName = strrep(FileName, ext, '-xyz.png'); If the file should be saved under a different folder it needs to be created and the file name changed accordingly [filepath, filename, ext] =...

check if gui selection has changed

The callback of an ui element is called whenever the element has been modified. However this does not necessarily mean that the value of the element has changed. Here is an example where an action is only performed if the value has changed. The trick is to use a value variable with persistent. function popupmenuAlgorithm_Callback(hObject, eventdata, handles) % hObject handle to popupmenuAlgorithm (see GCBO) %...

matlab popupmenu (combobox)

The popupmenu of the matlab gui is based on the uicontrol class. Below is a sample code for its usage: % create text entries in menu colormapStr{1}= 'blue-red'; colormapStr{2}= 'red-blue'; colormapStr{3}= 'gray'; set(handles.popupmenuColorMap, 'String',colormapStr,'value',1);   % get current selection of menu ColorMapContents =...

Ein paar Tage in Dresden

Mitte August waren wir ein paar Tage in Dresden und haben uns die Altstadt, Semper Oper, Frauenkirche, Schloss Pillnitz und die Sächsische Schweiz angeschaut. Wir haben in der Neustadt in der Nähe des goldenen Reiters gewohnt und sind Abends häufig in der äußeren Neustadt gewesen. Sehr zu empfehlen ist das Thalia Kino, wo man auch sehr gut was trinken kann, wenn man Jazz Musik mag das Blue Note und...
Page 4 of 27« First...23456...1020...Last »