I know this is a likely a simple problem, but am having lots of trouble...
I am trying to use an array of data (say 1x50) in a for loop from a user input that is different than the name of the array.
In other words, the user inputs something like 'example' and I need to use the data in the existing array that is named 'exampleD'
exampleD = ones(1,50);
inp = input('Which dataset are you working with? ','s');
Missing code here (some command that will concatenate user input and the letter 'D' to get 'exampleD' which is the name of the existing variable)
for i = 1:50
Any help is greatly appreciated!