Wednesday, September 28, 2011

Sorting objects according to their attribute (OOP) in MATLAB:

%Sort According to Slice location
[~ , ind ] = sort([dinfo.SliceLocation]);
dinfo = dinfo(ind);

No comments:

Python Terminal Animation for Waiting

A nice small tool for terminal animations from yaspin import yaspin with yaspin(): do_stuff()