User Tools

Site Tools


analysis:nsb2016:week3long

Differences

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

Link to this comparison view

Next revision
Previous revision
analysis:nsb2016:week3long [2016/07/03 22:40]
mvdm created
analysis:nsb2016:week3long [2021/03/10 11:53]
mvdm
Line 1: Line 1:
-~~DISCUSSION~~ 
- 
 ===== Module 3: Visualizing neural data in MATLAB ===== ===== Module 3: Visualizing neural data in MATLAB =====
  
Line 163: Line 161:
 This may not be what you were expecting! If you give ''​plot()''​ only one input argument (''​this_spk''​ in this case) it will, by default, plot the **index** of each element against its **value**. This may not be what you were expecting! If you give ''​plot()''​ only one input argument (''​this_spk''​ in this case) it will, by default, plot the **index** of each element against its **value**.
  
-Let's unpack that statement so it is really clear: we have an array with five values here: the spike times of five spikes of neuron ​11. ''​plot()''​ plots the value of the first element (''​this_spk(1)''​) at x-coordinate ''​1''​ (its index, i.e. position in the array), and so forth for the whole length of the array. It also connects the data points with a blue line.+Let's unpack that statement so it is really clear: we have an array with five values here: the spike times of four spikes of neuron ​17. ''​plot()''​ plots the value of the first element (''​this_spk(1)''​) at x-coordinate ''​1''​ (its index, i.e. position in the array), and so forth for the whole length of the array. It also connects the data points with a blue line.
  
 Let's plot the same data differently:​ Let's plot the same data differently:​
analysis/nsb2016/week3long.txt ยท Last modified: 2021/03/10 11:53 by mvdm