Prev: Lower Triangle for a matirx
Next: Fitting a plane
From: marwen on 21 May 2010 09:52 Thank you for your answer, but actually i made as this to put all details in a list: info=imfinfo(S.image1); set(S.list,'string',info); but it generated this error: Conversion to double from struct is not possible. !! Do you know what shall i change ...?
From: Steven Lord on 21 May 2010 09:58
"marwen " <hi.marwen(a)gmail.com> wrote in message news:ht6363$52j$1(a)fred.mathworks.com... > Thank you for your answer, > but actually i made as this to put all details in a list: > > info=imfinfo(S.image1); > set(S.list,'string',info); > > but it generated this error: Conversion to double from struct is not > possible. !! > > Do you know what shall i change ...? The String property of a uicontrol (like a listbox, which I assume is what S.list is because of the name) expects either a char array or a cell array (each cell of which contains a char array.) A struct array, like the output of IMFINFO, is neither. Use EVALC to capture the output of DISPlaying the struct -- the output of EVALC will be a char array and so acceptable as the value for the String property of a uicontrol. -- Steve Lord slord(a)mathworks.com comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ To contact Technical Support use the Contact Us link on http://www.mathworks.com |