- % Program 2-1
- %
- % calculate average
- %
- % Programmed by H.Harada
- %
- function outdata = mvalue(indata)
- %****************** variables *************************
- % indata : Input data
- %******************************************************
- outdata=sum(indata)/length(indata);
- % ************************end of file***********************************