Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Added matlab object saving #10
Since many people incorporate MATLAB classes, it would be useful to support saving the (public) properties of matlab objects.
The code is tested for empty object, i.e. numel(obj) == 0; vector of objects. Currently, the code flattens 2D or higher dimensional array of objects to a vector.
No problem, I'm happy that I am able to contribute :)
I have not tested it with Octave, sorry. This might not also work on earlier versions of MATLAB (< 2007-2008), where class syntax was different as far as I know.
Also, it might be good to add this capability to saveubjson.m too. I didn't want to change it before the initial pull request was revised.
it would be nice to use the existing "isoct" variable or opt.IsOctave field in the savejson to test for octave.
that would be nice too