I need to import certain columns from an Excel spreadsheet into Matlab and save the result in an array.
For example, say I have a 3x1 cell array and the elements are strings like 'USD', 'EUR' and 'GBP'.
if I want to import data from 3 separate spreadsheets on a network share and store the data from each spreadsheet in arrays called 'InitialUSD', 'InitialEUR' and 'InitialGBP' respectively.
Any guidance on how I could get the array names to be linked to the values in the cell array?
struct. Then you can have 1 field with values and 1 field with the corresponding name. In your case this would mean a 3x1 struct of which each element contains 1 vector (or Nx1 cell array) and 1 string.