I have a data file dataFile.mat that has two arrays A_numbers and B_numbers.
I want to write a script that takes gets the data from either A_numbers or B_numbers. I do not want to use numbers - I need to keep them as strings.
How can I do the following, where arrayName can be either A or B?
function[] = getData('arrayName')
importedData = load('dataFile')
result = importedData.arrayName_numbers
save 'resultData.mat'