Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#1 handle2struct generates unsupported type error

open
nobody
None
5
2012-06-19
2012-06-19
Anonymous
No

handle2struct is a matlab function that let\'s one convert a figure to a structure. I wanted to use this to save figures to a mysql DB, but mym gives an \"unsupported type\" error when passed this structure. The structure can be very deep because each figure has children which themselves have children.

Not sure why it is breaking.

h=figure; plot(rand(5)); legend({'foobar'}); g=handle2struct(h);
mym(\'insert into foo (fid, data) values (1,\"{M}\")\',g);

where data is a medium or long blob and fid is an int

Discussion