I learned a new MATLAB command which seems like it’d be useful for many applications, especially for switching between different methods for subsampling from a vector. Here’s some sample code:
As I was searching for how best to include Matlab code in this post, I found this interesting LaTeX package that can accommodate the inclusion of source code of just about any language: “listings“
