作者whatiwant (我想要)
看板MATLAB
标题[问题] Function的新手问题
时间Wed Jun 6 20:10:08 2012
题目:
http://www.physicsforums.com/showthread.php?t=337095
老师要求:
要有4个m档 要我们学习把function写成m档 在叫出来用
我的解答:
我知道怎麽解 不过只能写出两个m档
1.
function V_t=findzero(x,r)
V_t=fzero(@eq,0);
function V_t=eq(t)
V_t=x.*1e9+1e8*(1-exp(-t/100))-r.*t;
end
end
2.
time=findzero(0.5,1e7)
想请版上的高手帮帮忙 感谢
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 111.255.0.98