|
On May 31, 4:01 pm, "Michael" <michael.lisow...@gentex.com.extrachar>
wrote:
> Hello everyone.
>
> I want to graph the averge test score (mean, with std) for several different test. For example: average +/- 1 stddev
> the average math (85+/- 10), science (75 +/-15), reading 90 +/- 5 etc.
>
> summary(1,i)= mean(data_reduce(:,i))
> summary(2,i)=std(data_reduce(:,i))
> figure
> errorbar(summary(1,:),summary(2,:),'xr')
>
> This is close but I just get data labels 1, 2, 3..22 (max numer of test catagories). How can I change the data label 1 to say math?
Is there a new version of errorbar?
The old version has this format:
errorbar(x,y,e)
which does not correspond to the format of your command at all.
Anyhow, to change the labels on the x axis, you can do this:
xlab={'math','science','reading'};
set(gca,...
'XTickLabel',xlab)
|