Hi This is the function :
sigma = (M*b) / ((3.14*a*b^3)/4) - ((3.14*(a-x)*(b-x)^3)/4)
i know sigma,M,a and b how can i find x value? Thanks

 Akzeptierte Antwort

dpb
dpb am 15 Jun. 2017

0 Stimmen

fnSigma = (x) (M*b)/(pi*a*b^3/4)-pi*(a-x)*(b-x)^3)/4; % anonymous function builds in a,b,M
x=fsolve(@(x) fnSigma-sigma,x0); % solve for fn(x)|[M,a,b] - sigma == 0
Need a starting guess for x0.

2 Kommentare

Muhammed Talha Uysal
Muhammed Talha Uysal am 15 Jun. 2017
Thanks
dpb
dpb am 15 Jun. 2017
Welcome... :)

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Tags

Gefragt:

am 15 Jun. 2017

Kommentiert:

dpb
am 15 Jun. 2017

Community Treasure Hunt

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

Start Hunting!

Translated by