Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
MATLAB 程 式 設 計 入 門 篇 : 初 探 MATLAB函 數 線 上 輔 助 說 明 (I)• 加 上 函 數 「 線 上 輔 助 說 明 」(On-line Help)• 在 函 數 定 義 列 下 直 接 加 入 註 解>> type func2.mfunction average = func(vector)% FUNC2 A simple function with a single help line.%% Usage of this function:% output = func2(input)% "output" is the average of the input vector "input".% Roger Jang, 19991123.average = sum(vector)/length(vector);% 計 算 平 均 值102