Warning: Trying to access array offset on value of type bool in /data/www/freeminded.org/www/wp-content/plugins/wp-latex/wp-latex.php on line 39 Tag » Scripting « @ Freeminded.org Warning: Trying to access array offset on value of type bool in /data/www/freeminded.org/www/wp-content/plugins/wp-latex/wp-latex.php on line 46

Posts Tagged Scripting

Rotating a file: converting row data to column data

Posted by on Tuesday, 13 September, 2011

Say you have a file with data line-by-line, but you want it to be column-by-column, like this:

                1 a
1 2 3 4         2 b        
a b c d   -->   3 c
                4 d

So behaviour becomes similar to Matlab’s rot90 or transpose function, rotating the file 90 degrees counterclockwise*. This stuff may be of interest if we want to plot columns (like, for every digit plot its corresponding letter). Here’s how it’s done: Read the rest of this entry »

Matlab and libc.so on 64-bit Linux

Posted by on Wednesday, 31 August, 2011

I had Matlab R2009b running on Kubuntu Lucid Lynx (10.10), no problem. I do a dist-upgrade to Natty Narwhal (11.04) and Matlab complains:

~/matlab/bin/util/oscheck.sh: 619: /lib64/libc.so.6: not found Read the rest of this entry »

Generic Gnuplot

Posted by on Friday, 26 August, 2011

Some generic gnuplot stuff Read the rest of this entry »

Commandline Scripting with Maple

Posted by on Wednesday, 24 August, 2011

As some of my readers may know, I’m a big fan of the commandline. GUI tools are all very neat and stuff, but when it comes to doing bulk operations there really is no substitute for commandline scripting with pipe-and-filter structures. Luckily, the guys at MapleSoft provide a commandline interface to Maple, so it can be called directly from your favourite shell environment, allowing you to do more complicated stuff than possible when using ‘bc’ or AWK. Read the rest of this entry »

Shell Script for calculating Confidence Intervals

Posted by on Monday, 22 August, 2011

If you have some data (e.g. the results from simulation experiments) you may want to calculate the Confidence Intervals to gauge statistical significance. You can do this by hand. I use a shellscript (and later also built a php function). Read the rest of this entry »