Quantitative Neurobiology

Notes, assignments, and code for NEUROBIO 735 (Spring 2018).

Class details:

1/10 – 2/8:
Wednesday, Thursday
3:00 – 4:30
DIBS conference room

Exercises

Quizzes

GitHub

Consider the table below:

Mouse Genotype Rotarod Tail Suspension Drug Age
1 WT 15.14 35.1 Yes 25
2 KO 11.51 10.2 No 26
3 WT 12.22 25.1 Yes 25
3 WT 17.07 22.7 No 25
3 WT 11.81 31.6 Yes 25
  1. Which columns of this table should best be transformed to categorical in Matlab?
    1. Mouse, Genotype, Drug
    2. Mouse, Genotype
    3. Genotype, Drug
    4. Mouse, Drug
    5. Mouse, Genotype, Rotarod, Drug
  2. This table is not tidy. Which best describes why?
    1. Columns are not rounded to the same number of decimal places.
    2. Some rows contain redundant information.
    3. Rows are not uniquely identified.
    4. Each row represents more than one observation.
    5. Both 2 and 3.
  3. What would need to be done to tidy this table?
    1. Make a separate table for Mouse, Genotype, and Age.
    2. “Melt” the Rotarod and Tail Suspension columns.
    3. “Melt” the Rotarod, Tail Suspension, and Drug columns.
    4. Move Genotype and Drug into a separate table.
    5. Add a unique session number for each row.
  4. Which of the following snippets builds a table with the variables animal and treatment and sorts the rows by animal and then by treatment within animal. Assume animal and treatment are existing categorical variables.
    1. tbl = table(animal, treatment);
      sortrows(tbl, {'animal', 'treatment'});
      
    2. tbl = table(animal, treatment);
      sortrows(tbl, animal, treatment);
      
    3. dat = table(animal, treatment);
      sortrows(tbl, {'animal', 'treatment'});
      
    4. dat = table('animal', 'treatment');
      sortrows(dat, {'animal', 'treatment'});
      
    5. tbl = table(animal, treatment);
      sortrows(tbl, 'animal', 'treatment');
      
  5. Which of the following creates a function named last that returns the final element of an array?
    1. last = @(A) A(end);
      
    2. last = function(A) A(end);
      
    3. last = function(A)
         return A(end);
      end
      
    4. @last(A) A(end);
      
    5. last = function(A)
         last = A(end);
      end