Yes I think there are two different issues here: one is commands vs.
functions, and the other is how to do error handling. With respect to
the error handling one could argue to have only one way of doing things.
That would raise the question of what functions like mwrite() should
return instead.
I think the output of mwrite() as a command should be:
"matrix XXX (rows, cols) correctly written on namefile.ext"
so that the user in simple scripts does not need to use the 'catch'
function to check if the process concluded OK.
--
Ignacio Diaz-Emparanza
DEPARTAMENTO DE ECONOMÍA APLICADA III (ECONOMETRÍA Y ESTADÍSTICA)
UPV/EHU
Avda. Lehendakari Aguirre, 83 | 48015 BILBAO
T.: +34 946013732 | F.: +34 946013754
www.ea3.ehu.es