Got the below code, not sure why the table display of the char array is not right
Tval = table(name, x_t, tvals, 'VariableNames',{'Fund','Allocation','Dollar_Value'})Tval = Fund Allocation Dollar_Value ____ __________ ____________ BHP 0.22894 [1x11 char] NAB 0.19151 [1x11 char] CSR 0.38988 [1x11 char] AGL 0.13727 [1x11 char] NCP 0.052397 [1x11 char] Tval.Dollar_Valueans = $22894412.3$19150910.7$38988264.5$13726664.3$5239748.2
How to get the strings to display? Thanks!
Best Answer