User Tools

Site Tools


analysis:course-w16:week3long

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
Previous revision
analysis:course-w16:week3long [2016/01/19 14:13]
mvdm [Basic plot commands]
analysis:course-w16:week3long [2018/07/07 10:19] (current)
Line 8: Line 8:
   * Understand how to use //handles// to fine-tune formatting   * Understand how to use //handles// to fine-tune formatting
   * Meet some existing visualization tools: ''​MultiRaster()'',​ ''​PlotTSDfromIV()''​ and ''​ft_databrowser()''​   * Meet some existing visualization tools: ''​MultiRaster()'',​ ''​PlotTSDfromIV()''​ and ''​ft_databrowser()''​
-  * Use interactive figure properties for dynamic data viewing+  * Use interactive figure properties ​with callback functions ​for dynamic data viewing
   * Learn to use functions with variable numbers of input arguments (using ''​varargin''​ and ''​cfg''​ inputs) effectively   * Learn to use functions with variable numbers of input arguments (using ''​varargin''​ and ''​cfg''​ inputs) effectively
   * Understand which file format to export figures to   * Understand which file format to export figures to
Line 15: Line 15:
 Resources: Resources:
  
-  * (reference) MATLAB documentation for ''​plot'',​ [[ http://​www.mathworks.com/​help/​matlab/​ref/​figure_props.html | Figure properties ]], [[ http://​www.mathworks.com/​help/​matlab/​ref/​axes_props.html | Axis properties ]] and [[ http://​www.mathworks.com/​help/​matlab/​ref/​line_props.html | Line Properties ]]+  * (reference) MATLAB documentation for ''​plot'',​ [[ http://​www.mathworks.com/​help/​matlab/​ref/​figure_props.html | Figure properties]],​ [[ http://​www.mathworks.com/​help/​matlab/​ref/​axes_props.html | Axis properties]] and [[ http://​www.mathworks.com/​help/​matlab/​ref/​line_props.html | Line Properties]]
   * (reference) [[http://​www.mathworks.com/​help/​matlab/​creating_plots/​figures-plots-and-graphs.html | MATLAB plotting gallery ]]   * (reference) [[http://​www.mathworks.com/​help/​matlab/​creating_plots/​figures-plots-and-graphs.html | MATLAB plotting gallery ]]
   * (reference) [[http://​www.vandermeerlab.org/​BIOL377_assignment3_2012.pdf | Place cell assignment]] from %%MvdM%%'​s BIOL377 course at Waterloo from a few years ago (if you want a gentle intro to what is going on in the data you are looking at; can be done in 30 min)   * (reference) [[http://​www.vandermeerlab.org/​BIOL377_assignment3_2012.pdf | Place cell assignment]] from %%MvdM%%'​s BIOL377 course at Waterloo from a few years ago (if you want a gentle intro to what is going on in the data you are looking at; can be done in 30 min)
Line 307: Line 307:
 The topics that follow in this section are optional, in the sense that later modules do not assume you know how to do these things. Feel free to use this section as you see fit, but do make sure you go through the next section ("​Using existing visualization tools"​)! The topics that follow in this section are optional, in the sense that later modules do not assume you know how to do these things. Feel free to use this section as you see fit, but do make sure you go through the next section ("​Using existing visualization tools"​)!
  
-==== Interactive figures ====+==== Interactive figures ​and callback functions ​====
  
 Figure windows in MATLAB have many properties (here is the complete [[http://​www.mathworks.com/​help/​matlab/​ref/​figure-properties.html | list]]). A particularly useful one is the ''​KeyPressFcn''​ property, which specifies a function to be called when a key is pressed while the figure is active. Figure windows in MATLAB have many properties (here is the complete [[http://​www.mathworks.com/​help/​matlab/​ref/​figure-properties.html | list]]). A particularly useful one is the ''​KeyPressFcn''​ property, which specifies a function to be called when a key is pressed while the figure is active.
Line 463: Line 463:
 </​code>​ </​code>​
  
-If you can't get this to work, the resulting file is {{:​analysis:​course-w16:​r042.mp3|here}};​ Windows Media Player synthesizes it with a plain piano instrument, which is effective at communicating the sudden, violently synchronous activity during SWRs!+If you can't get this to work, the resulting file can be made to sound like this {{:​analysis:​course-w16:​r042.mp3|here}} ​(with Ableton Live); Windows Media Player synthesizes it with a plain piano instrument, which sounds a bit different but is also effective at communicating the sudden, violently synchronous activity during SWRs!
 ===== Using existing visualization tools ===== ===== Using existing visualization tools =====
  
Line 593: Line 593:
 {{ :​analysis:​course-w16:​plot_tutorial8.png?​nolink&​600 |}} {{ :​analysis:​course-w16:​plot_tutorial8.png?​nolink&​600 |}}
  
-Notice the various control buttons for moving between trials, channels (here we have only one loaded), and other functions, documented [[http://​www.fieldtriptoolbox.org/​faq/​how_can_i_use_the_databrowser | here]].+Notice the various control buttons for moving between trials, channels (here we have only one loaded), and other functions, documented [[http://​www.fieldtriptoolbox.org/​faq/​how_can_i_use_the_databrowser | here]]. %%FieldTrip%% is able to load many types of data files, see [[http://​www.fieldtriptoolbox.org/​reading_data | here]] for the list and how to use its data loaders.
 ===== Challenges ====== ===== Challenges ======
  
analysis/course-w16/week3long.1453230783.txt.gz ยท Last modified: 2018/07/07 10:19 (external edit)