フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Hi, How do you use fzero constantly update an equation?

2 ビュー (過去 30 日間)
kevin nguyen
kevin nguyen 2015 年 10 月 2 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Im trying to find the distance, x, at different values of mu
here is my code:
%nguyen_Kevin_HW4_PROBLEM4 function force=forceRoot() xguess=2; mu=linspace(.1,.55,100); for i=length(mu) xroot=fzero(@(xroot)subf(xroot,mu(i)),xguess); xsol(i)=xroot; end plot(mu,xsol) end %%%%
function f=subf(x,mu) m=18;%units Kg h=10;%units meters g=9.8;%meters/second^2 F=90;%units of newtons f=mu*m*g*sqrt(x^2+h^2)/(x+mu*h)-F; end

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by