salamay
asked on
creating variables with colheaders after Matlab importdata
Hi,
After importing a tab delimited file into matlab using the importdata function i get my headers in one cell array (textdata or colheaders) and the numerical data in data matrix.
I want to create variables from the first four letters of each column header with the corresponding data in the data matrix. Is is possible. Please help!
Thanks
Salamay
After importing a tab delimited file into matlab using the importdata function i get my headers in one cell array (textdata or colheaders) and the numerical data in data matrix.
I want to create variables from the first four letters of each column header with the corresponding data in the data matrix. Is is possible. Please help!
Thanks
Salamay
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
check this link for more info http://matlabwiki.mathworks.com/MATLAB_FAQ#How_can_I_create_variables_A1.2C_A2.2C....2CA10_in_a_loop.3F
Open in new window