Multiple values in EditField?
9 views (last 30 days)
Kristin Habersang on 23 Feb 2021
Hello So I want to plot multiple functions into one axis, using a GUI. When I run the GUI there should be one EditField, where I type in the number of sinus functions and then for example one EditField where i can put in multiple amplitudes. These functions should be plotted in the end. But is it even possible to put multiple values into one EditField(text)?
Mario Malic on 23 Feb 2021
Yes, you can. You'll have to use the str2num function to get the numeric array from the Edit Field (text) component.
>> a = '1, 2, 3' % character array
'1, 2, 3'
1 2 3 % numeric array