71.2k views
5 votes
How can I fix the error of "Dot indexing is not supported for variables of this type" in the following code?

User Leerssej
by
7.8k points

1 Answer

5 votes

Answer:

You used GUIDE to construct these GUIs.

When you use GUIDE, then the "handles" structure that is passed into your function always refers to information stored against the figure that the graphic element is in. "handles" is not a global structure, it is a per-GUI structure, and you have constructed three separate GUI.

You need to change

set(handles.edit6,'string',fullname);

to

edit6 = findobj(0, 'tag', 'edit6');

set(edit6, 'string', fullname);

Step-by-step explanation:

User Pat Zabawa
by
8.0k points