M
Malcolm McLean
I've been programming mainly in Matlab now for a couple of months.
Like many high-level languages, Matlab allows variables to be created
on the fly. This is a real nuisance. If you make a spelling mistake,
the function will execute. Then if the mispell is a lvalue it will
happily assign to the wrong variable. If it is a rvalue then the code
stops, at that point.
The problem is that some functions take hours to run. So a quick
modificiation, say in a routine to print out the results, can blow the
whole thing away. Testing on small data sets can sometimes be easier
said than done.
The C system, whereby a misspelt variable name will result in a
compiling or linking error, is far more convenient.
Like many high-level languages, Matlab allows variables to be created
on the fly. This is a real nuisance. If you make a spelling mistake,
the function will execute. Then if the mispell is a lvalue it will
happily assign to the wrong variable. If it is a rvalue then the code
stops, at that point.
The problem is that some functions take hours to run. So a quick
modificiation, say in a routine to print out the results, can blow the
whole thing away. Testing on small data sets can sometimes be easier
said than done.
The C system, whereby a misspelt variable name will result in a
compiling or linking error, is far more convenient.