Using environment variables in MatLab

Quite often you need to call external or system commands inside MatLab. Sometimes that external commands requires setting up environment variables in the shell. If would be a pain to do the environment setup inside MatLab. The easiest way I know of t
Xu Cui
14 sec read

Small MatLab tips

genpath When you add a folder to path, you often want to add all its subfolders (and their subfolders) to path too. In this case, you can use genpath. e.g. addpath(genpath(pwd)) use ii, instead of i, in loop (suggested by Chess Stetson) You probably
Xu Cui
1 min read