Questions tagged [neuroscience]

Neuroscience is the study of nervous systems. This tag is broadly applied to questions from the various subbranches like brain imaging, neural engineering, computational and systems neuroscience.

162 questions
1
vote
1 answer

How can I create n sine waves from the elements of an n-by-m matrix?

I'm writing a program on MATLAB that generates 13 waveforms of varying amplitude, duration, and frequency. Each waveform is repeated 5 times, which means I have 65 'trials' in total. The total length of each trial = 1.5 ms. The sampling frequency =…
Hans
  • 27
  • 1
  • 7
1
vote
0 answers

Nibabel inconsistent image header/data orientation

I am finding an inconsistency in my image between the header and the data: >>> im = nib.load('image.nii') >>> im.shape (512, 512, 112) >>> im.get_data().shape (112, 512, 512) Is this expected? Can I ask Nibabel to supply the data in an orientation…
Gilly
  • 1,739
  • 22
  • 30
1
vote
0 answers

Calculate Kuramoto's R from membrane potentials for network of N neurons

I am having trouble calculating the coherence (measured by the Kuramoto order parameter, R) for a network of N neurons. Currently I start with two arrays, a '1x# of data points' array that holds time of each data point and an 'Nx# of data points'…
zek3r
  • 11
  • 1
1
vote
2 answers

Vectorized approach to compute PSTH (peristimulus time histogram) in MATLAB

I have a vector of spike times (action potentials from a neuron) and a vector of stimulus event timestamps. I want to create a PSTH to see if the stimulus influences the spike rate of the neuron. I can do this by looping through each stimulus event…
raz
  • 21
  • 7
1
vote
1 answer

Heterodox use of Deep Learning to find hidden patterns

I would appreciate your comments/help about a strategy I am applying in one of my analysis. In short, my case is: 1) My data have biological origin, collected in a period of 120s, from a subject receiving, each time, one of possible three stimuli…
RgrNormand
  • 530
  • 4
  • 10
1
vote
1 answer

NEURON python Graph() is blank

When using python interface for NEURON, when I create a g=h.Graph() object in python, with g.addvar(...) to plot a variable, clicking Init & Run results in an empty Graph:
Justas
  • 5,718
  • 2
  • 34
  • 36
1
vote
1 answer

Show GUI when running nrniv?

How do you open the GUI when running NEURON simulator using the nrniv command?
Justas
  • 5,718
  • 2
  • 34
  • 36
1
vote
1 answer

Collapsing a 3d matrix across one of the dimensions to make a 2d matrix

I have a 3d matrix of EEG data containing (time x electrode x trial). I would like to collapse the data across trials to obtain average trial values for each electrode and time point. Can someone please walk be through how to do this in MATLAB?
SaraA
  • 33
  • 6
1
vote
2 answers

Spiking Neural Network

Where can I find some good theoretical descriptions about Spiking Neural Networks ? I'm unable to gather resources regarding this kind of network what people call the third generation ANNs (don't even know why).
1
vote
1 answer

How to prevent NN from forgetting old data

I've implemented NN for OCR. My program had quite good percentage of successful recognitions, but recently ( two months ago ) it's performance decreased at ~23%. After analyzing data, I noticed that some some new irregularities in images appeared (…
Yuriy Zaletskyy
  • 4,983
  • 5
  • 34
  • 54
1
vote
1 answer

Neurophysiology recording MATLAB

I have my data stored in structures regarding recording from neurons. Neuronal spikes are stored in a logical array where a spike is 1 and no spike is 0. spike = <1x50 logical> spike = [1 0 0 0 1 0 0 1 0 0 0 0 0 0 1 1 1 0 1 0 1 0 0 0 1 1 0 0…
chinkare_16
  • 135
  • 7
1
vote
1 answer

Mapping two 3D matrices of different sizes to each other

I have two matrices MRI scans of completely different sizes (141x172x110 and 176x208x176). I need to map the larger matrix B to the smaller one A. The values of matrix A are regions of a brain - an atlas, and the values of matrix B are the type of…
1
vote
0 answers

Custom colors for Desikan-Killiany atlas freesurfer regions

I wish to know the best way to get a brain image that shows specific values or colors for each of the 68 freesurfer Desikan-Killiany atlas regions (on the fsaverage template). My input would be just those 68 values. Making a custom freesurferLUT…
leonfrench
  • 193
  • 1
  • 8
1
vote
0 answers

Python: Different performance when same code is put in separate script and executed with execfile

I have a script network.py that includes the following: from brian import * . . . simulation_clock = Clock(dt=dt) . . . pop_vector = NeuronGroup(1, model=eqs_pop_vector) This script raises a TypeError, because simulation_clock is not passed as an…
abcd
  • 10,215
  • 15
  • 51
  • 85
1
vote
2 answers

fMRI data: What is the best way to access BOLD values associated with a specific brain region using MATLAB?

I have some pre-processed fMRI data in Nifti file format and I want to access the BOLD values associated with a specific brain region e.g. Right Anterior Insula. I know there are lots of functions out there to import data from nifti files, but I…