analysis:nsb2016:week3long

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

Next revision | Previous revision | ||

analysis:nsb2016:week3long [2016/07/03 22:40] mvdm created |
analysis:nsb2016:week3long [2021/03/10 11:53] (current) 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.1467600001.txt.gz ยท Last modified: 2018/07/07 10:19 (external edit)

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International