GUIDE

3 views (last 30 days)
john
john on 6 Mar 2012
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??

Accepted Answer

Kevin Holst
Kevin Holst on 6 Mar 2012
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.
  3 Comments
john
john on 6 Mar 2012
Thank you man for help to understand it.

Sign in to comment.

More Answers (0)

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!