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...

oltre 3 anni 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...

oltre 3 anni 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 ...

oltre 3 anni 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...

oltre 3 anni 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...

oltre 3 anni 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...

oltre 3 anni 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()

oltre 3 anni ago | 3 downloads |