Community Profile


Jorrit Montijn

Netherlands Institute for Neuroscience

7 total contributions since 2016

Post-doctoral researcher at the Heimel lab


Jorrit Montijn's Badges

  • First Review
  • First Submission
  • Knowledgeable Level 1
  • First Answer
  • Solver

View details...

Contributions in
View by

How can I insert the *contents* of a string variable directly into my code?
A dirty work-around is using eval() and just pasting everything you want to perform as a string. For example: eval(['!git c...

3 years ago | 1

Smoothing 2 columns text file
Hi Alex, Have you looked into using a function like filtfilt()? You can look it up in the MATLAB help; you can use several bu...

3 years ago | 0


Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

3 years ago


Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

3 years ago


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

3 years ago

Reduce the number of zeros in an array
Hi Pavlos, I'm not sure what the purpose would be of reducing the number of zeros, but here's one way to do it by removing on...

3 years ago | 0

| accepted


Computationally optimized versions for mean(), std(), and var()
Halved computation time for std() and var(), as well as a slight improvement for mean()

3 years ago | 2 downloads |