Skip to content

All: Matlab analysis routines

Paula edited this page Nov 16, 2017 · 1 revision

Matlab analysis routines

The Matlab analysis scripts have been developed on Linux. The instructions below are for a Linux system and may need to be adapted slightly for Windows.

Example usage of Matlab helper scripts

  1. To run a configuration file, you can use

     x = nf.run('neurofield/configs/eirs-corticothalamic.conf')
    

    This will run NeuroField, create an output file neurofield/configs/eirs-corticothalamic.output, parse the output file using nf.read() and return a Matlab struct.

  • You can calculate and plot the power spectrum using

      [f,P] = nf.spatial_spectrum(x)
      loglog(f,P)