assigning variables in editable October 26, 2020 09:49AM |
Registered: 3 years ago Posts: 63 |
behfeat= [1 2 3]; editable('behfeat');
values = [1 2 3]; behfeat = values; editable('behfeat');
Error using eval Unrecognized function or variable 'values'. Error in embed_timingfile (line 47) val = eval(tokens{n}{1}{1}); Error in run_trial (line 55) runtime_handle{m,2} = get_function_handle(embed_timingfile(MLConfig,timingfile{m},trialholder)); Error in monkeylogic/UIcallback (line 862) result = run_trial(MLConfig,datafile); Error while evaluating UIControl Callback.
Re: assigning variables in editable October 26, 2020 09:52AM |
Registered: 3 years ago Posts: 63 |
list_of_strings = getVariableNames() % length-N cell array of strings list_of_values = getValues() % length-N cell array, each element an numerical array of values for i=1:length(list_of_strings) eval([list_of_strings{i} ' = [' num2str(list_of_values{i}) ']' ]) end editable(list_of_strings{:});
Re: assigning variables in editable October 26, 2020 10:41PM |
Admin Registered: 5 years ago Posts: 878 |
Re: assigning variables in editable October 27, 2020 09:17AM |
Registered: 3 years ago Posts: 63 |
Re: assigning variables in editable October 27, 2020 09:46PM |
Admin Registered: 5 years ago Posts: 878 |
Re: assigning variables in editable October 29, 2020 02:32PM |
Registered: 3 years ago Posts: 63 |
The National Institute of Mental Health (NIMH) is part of the National Institutes of Health (NIH), a component of the U.S. Department of Health and Human Services.