The problem asks to Printing out the means of each column from an excel data sheet. I have gotten the means to print the way I want but were to assign them to the name of the column from "strColumns"
This is my script so far
dataN = csvread('DataClass.csv');strColumns = {'LabQuiz'; 'zyBooks'; ... 'Labs'; 'Homeworks'; ... 'MidtermI'; 'MidtermII'; 'Final'; ... 'ExamAverage';'Grade'};% Line styles
strLineStyles = {'--b', ':b', '-k', '--k', ':g', '--g', '.g', '-g', '-r'}; for colData=dataN(:,(1:9)) %index variable
m=mean(colData); fprintf('The average of %s is %0.2f\n', strColumns{1:9},m)end
I've tried a million different ways and I can't make it work. It should print like
The average of LabQuiz is 82.44The average of zyBooks is 135.62The average of Labs is 93.10The average of Homeworks is 91.19The average of MidtermI is 80.01The average of MidtermII is 75.19The average of Final is 65.56The average of Exam Average is 73.59The average of Grade is 86.64
Best Answer