8-1 MATLAB ?勫嚱?歌〃绀烘?

 MATLAB い埃兜Α计厩ㄧ计礚猭ノ虏虫秖ボτ琌ノ MATLAB ㄧ计Functionsㄓボ饼癸ㄧ计秈︽矪瞶籔だ猂闽 MATLAB ゲ斗﹃┪琌ㄧΑ搐рFunction HandlesよΑ块ㄧ计摸 MATLAB 癸计厩ㄧ计秈︽贺笲衡籔だ猂ㄒ

セ彻翴弧玡贺笲衡闽―秆稬だよ祘Α盢セ盽稬だよ祘ΑOrdinary Differential Equations彻竊い冈灿弧

MATLAB 计厩ㄧ计常琌 M 郎捌郎 mㄓボ羭ㄒτē计厩Α糶Θ郎嘿 humps.m  MATLAB 计厩ㄧ计

$$ f(x)=\frac{1}{(x-0.3)^2+0.01} + \frac{1}{(x-0.9)^2+0.04}-6 $$

瓃緈畃ㄧ计ず MATLAB嘿 humps.m盢 humps ㄧ计ㄒㄓざ残ㄏノ闽ㄓ癸ㄧ计秈︽瓜――伐单笲衡

Hint
  • humps 琌虫块ㄧ计peaks 琌蛮块ㄧ计ㄢ常琌 MATLAB 盽砆ノ代刚ㄧ计
  • セㄧΑ㎝ㄧ计常琌functionsи硄盽ノㄧ计ㄓmathematic functionτノㄧΑㄓsubroutines or functions in a programming languageㄢΤ穦睼ノ


MATLAB祘Α砞璸秈顶絞