how to use multiline edit textbox to get user-defined matrix data from users in matlab gui -
i have written code in matlab , has worked. started developing gui code. however, want collect matrix data user using multiline edit textbox, new row distinguished new line. example, n×3 matrix: 3 3 2 4 4 3 . . . n1 n2 n3
if assume user of application enters numbers in correct format, can use str2num function.
for example, use following code in button callback:
a = get(handles.yourtextboxtag, ‘string’); b = str2num(a);