...this is a log of code snippets and useful tips I wrote/found. Should you find any mistakes or have any useful suggestions, please do not hesitate to write to me.
Friday, June 5, 2015
Wednesday, April 8, 2015
the command 'sl'
do you know about the command sl in unix? I ran into it when I typed it by mistake instead of 'ls'try it out and try not to get run over by the train :)
Tuesday, March 31, 2015
'cut' - in place file change: can't do
We cannot run a cut command on a file and change it in place For example:
cut -d',' -f -3 abc.txt>abc.txt
the above command leads to an empty abc.txt file
cut -d',' -f -3 abc.txt>abc.txt
the above command leads to an empty abc.txt file
Friday, February 6, 2015
Perceptually different colors
Sometimes, you need a plot which compares about 10 different methods. In that case there is a particular need for each line in the plots to look different, here is a neat function:(big thanks to harsh agrawal for finding this)
http://www.mathworks. com/matlabcentral/ fileexchange/29702-generate- maximally-perceptually- distinct-colors/content// distinguishable_colors.m
http://www.mathworks.
Friday, January 30, 2015
Subscribe to:
Posts (Atom)