Tag Archive: usability


When one uses MATLAB and Ruby at the same time, the first one feels like a continuos torture. Even the simplest operations are incredibly harder to perform with MATLAB, variable printing being a good example. In order to improve this, I have written a better function to do the job. Since it is one of the most common operations, my code is much more cleaner and easy to read, than if there would be numerous disp’s and sprintf’s throughout the code. Continue reading

It is an easy thing, but came to me just recently. Often when processing results of MCNP or Serpent calculations I was annoyed by necessity to define MATLAB functions in a separate file, even if I don’t use them anywhere else. Well, it has an obvious solution – make the main script as a function (just be careful choosing its name). Then all single-use functions can be located in the same file:
Continue reading