Hey everyone,
Im trying to get the values out of a variable which I have defined already but I don't call them unless I select it from a list.
Var1 = [10, 5, -1, 2, 3]Var2 = [5, 6, 7, 8]... etcList = {'Var1','Var2'};[indx] = listdlg('ListString',List,'SelectionMode','Single')% Selected the variable from list
VarChosen = List{indx}%VarChosen = 'Var1'
So here when I select it i get a Char of 'Var1'
What I need is the values of Var 1 so that
Var1_A = Var1(1)Var1_B = Var1(2)Var_1C = Var1(3)... etc
I think i'm just missing a way for the Character Array to be seen as the variable for it to call.. I don't know.
Any help would be appreciated.
Best Answer