MATLAB: GUIDE

edit text

Hi, I have problem with this:
martixA=zeros(4,4)
UserData.matrixA(1,1)=sym(strcat('-',(get(handles.edit5,'string'))));.....................
if string is number like 4.884032 it is ok, but in case if string is like "alfa", it is error,,,,,why???
Please, can you help me??

Best Answer

You can't put a 5 character string into a single spot in a matrix. You'll need to use cell arrays to do what you're trying to do.