I am finding (in general) I am unable to assign text within functions. For example, if I am looking at names and height, if I were to execute
function [num, txt, raw]=demographic()
[num, txt, raw]=xlsread('demographic_data.xlsx');
end
It only gives me the numerical value of the heights and outputs this to ans. It does not show me what the names are or assign the heights to num.