Posts

Showing posts from September, 2012

Cool Matlab discoveries!

I just discovered two very neat and useful Matlab functions on http://people.csail.mit.edu/jskelly/blog/

1) Matlab has the ability to take a symbolic expression and convert it to Latex. I find this especially useful when I solve a complex problems and the output has a lot of different braces, etc. Simply render the Latex output and see the output more "Mathematically".

2) Matlab also has hash tables similar to Perl!

EDU>> variable = containers.Map
variable = 
  containers.Map handle   Package: containers
  Properties:         Count: 0       KeyType: 'char'     ValueType: 'any'
  Methods, Events, Superclasses
And adding values:
EDU>> variable('Peter') = 'Paul'; EDU>> variable
variable = 
  containers.Map handle   Package: containers
  Properties:         Count: 1       KeyType: 'char'     ValueType: 'any'
  Methods, Events, Superclasses

EDU>> variable('Peter')
ans =
Paul