Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
development:wizzard [2018/10/21 15:02]
42.49.180.224 [Implement a graphical user interface as a wizzard for certain analysis protocols]
development:wizzard [2017/08/17 11:21] (current)
127.0.0.1 external edit
Line 1: Line 1:
-====== Implement a graphical user interface as a "wizzard&​quot; ​for certain analysis protocols ======+====== Implement a graphical user interface as a "wizzard" ​for certain analysis protocols ======
  
 //This project has been completed, the documentation below is only provided for future reference.//​ //This project has been completed, the documentation below is only provided for future reference.//​
Line 5: Line 5:
 The idea is to make a graphical user interface that allows the user to step through a sequence of functions, where for example each block consists of a computation with the associated graphical feedback. E.g. consider the following analysis protocol: The idea is to make a graphical user interface that allows the user to step through a sequence of functions, where for example each block consists of a computation with the associated graphical feedback. E.g. consider the following analysis protocol:
  
-&lt;code matlab&gt;+<code matlab>
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 % Step 1: do the preprocessing % Step 1: do the preprocessing
Line 52: Line 52:
 cfg.layout ​     = '​CTF151.lay';​ cfg.layout ​     = '​CTF151.lay';​
 multiplotTFR(cfg,​ TFRhann); multiplotTFR(cfg,​ TFRhann);
-&lt;/code&gt;+</code>
  
 Using the wizzard on this analalysis protocol would result in a graphical user interface like this: Using the wizzard on this analalysis protocol would result in a graphical user interface like this:
Line 59: Line 59:
 {{development:​wizzard2.png}} {{development:​wizzard2.png}}
  
-Pressing the &quot;next&​quot; ​button would result in the snippet of matlab code inside the edit box to be executed, pressing the &quot;previous&​quot; ​button results in going one step back. The code would be executed in the main Matlab workspace as if it were a normal script, which means that the variable names are also defined in the wizzard. Loading and saving data from/to files would also be easy to implement using the standard Matlab ​&quot;uigetfile&​quot; ​function.+Pressing the "next" ​button would result in the snippet of matlab code inside the edit box to be executed, pressing the "previous" ​button results in going one step back. The code would be executed in the main Matlab workspace as if it were a normal script, which means that the variable names are also defined in the wizzard. Loading and saving data from/to files would also be easy to implement using the standard Matlab ​"uigetfile" ​function
 + 
 +The wizzard would have to read and parse the matlab script that contains the documentation and the code, and it would have to detect the sections by the "​%%%%%"​ separators. To make a usefull wizzard using this graphical interface would then only require making example matlab scripts with a well-defined structure with comments and with code
  
-The wizzard would have to read and parse the matlab script that contains the documentation and the code, and it would have to detect the sections by the &​quot;​%%%%%&​quot;​ separators. To make a usefull wizzard using this graphical interface would then only require making example matlab scripts with a well-defined structure with comments and with code. 
 ===== Ideas for further refinement ===== ===== Ideas for further refinement =====
  
Line 71: Line 72:
  
 If graphical display of the data does not apply to a specific step, then the textual output could be displayed in a dialog with only an "​OK"​ button. If graphical display of the data does not apply to a specific step, then the textual output could be displayed in a dialog with only an "​OK"​ button.
 +