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); 

Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo