How can I use fprintf function to display an array sizes of mx n with headers both on columns and rows?
Show older comments
Hi,
I'm just wondering how can I use fprintf function to display a table size m x n with headers on both rows and columns. Recently, I had a analyzing data homework where I imported data from a xlsx file and used data to get the mean, median, min, max, and std dev. I was required to have all the statistic in a single matrix but did not required to display headers. I know that I can display header for columns. Below is codes of my other homework.
Table = [x;k]';
fprintf('T(K) \t k(1/min) \n');
fprintf('%3.0f \t %1.2e \n',Table');
It would display " T(K)' and " k(1/min)" as headers for first and second column and data under them. If I would write codes for my data analyzing data problem, I can write the same codes display mean, median, min, max ,and std dev as columns headers.But how can I display headers for the rows.
Thanks, Le
Accepted Answer
More Answers (0)
Categories
Find more on Fortran with MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!