After some experimentation, I discovered that the output table *does* display properly if I only show the first 3 values using the following code:
sortedTable = table(sortedNames(1:3),sortedVals(1:3),'VariableNames',{'Name' 'Value'});
Apparently due to space limitations in the MATLAB workspace, trying to list more than 3 values displays the metadata I included in my previous post rather than the values themselves. Fortunately, it will suit my purposes to only display the first 3 values; I'm still not sure how to generate a nice-looking table with more than 3 values when the values are automatically assigned from existing arrays (rather than manually assigned).
Thanks again to Aslak and Steven for the input I received to solve this issue.
sortedTable = table(sortedNames(1:3),sortedVals(1:3),'VariableNames',{'Name' 'Value'});
Apparently due to space limitations in the MATLAB workspace, trying to list more than 3 values displays the metadata I included in my previous post rather than the values themselves. Fortunately, it will suit my purposes to only display the first 3 values; I'm still not sure how to generate a nice-looking table with more than 3 values when the values are automatically assigned from existing arrays (rather than manually assigned).
Thanks again to Aslak and Steven for the input I received to solve this issue.