101 reputation
bio website github.com/chappjc
location Silicon Valley, CA
visits member for 1 year, 5 months
seen Oct 23 '13 at 5:24

Common MATLAB tips and solutions:

  • Never use length. Ever. (OK, more of an imperative than a tip.)
  • MATLAB is column-major (down then across)!
  • To use bsxfun to it's full potential and with little effort, know your singleton dimensions and permute (and that bsxfun operates on multiple singleton dimensions).
  • The shared library search path in Linux comes only from LD_RUN_PATH in MATLAB, not the usual LD_LIBRARY_PATH. This comes up a lot.
  • The default C MEX configuration uses ANSI C (C89/C90), which really stinks. Enable C99.

Did I mention, never use length? Ever.

My favorite obscure and/or tricky MATLAB stuff:

I'm a research scientist focused on medical image processing, machine learning, dimensionality reduction, and parallel computing. I ♥ accumarray.

101 Reputation

100 Oct 23 '13
+100 04:22 assoc