%This program can calculate draw group data curve
%Author:    Zhengwei Yuan
%           National Institute of Biological Sciences (NIBS), Beijing 102206, China
%           yuanzhengwei@nibs.ac.cn
function mean_data=group_data_plot(data,range,color)
mean_data = mean(data);
sem_data = sem2d(data);
assignin('base','range',range);
drawErrorLine(range,mean_data,sem_data,color,0.4,0);