how can solve the ratio in matlab
Show older comments
how can i solve the the ratio in matlab
y(x)=1./((a^2 + b^2)e^x + (c^2 + d^2)e^-x)
where a, b,c and d are constant.
answer would be some sech()....
4 Comments
John D'Errico
on 8 Aug 2017
Simple.
y=1./((a^2 + b^2)*exp(x) + (c^2 + d^2)*exp(-x));
Wajahat
on 8 Aug 2017
dpb
on 8 Aug 2017
What "ratio"?
It's only sech(x) if (a^2 + b^2)=(c^2 + d^2)--> 1/2
Wajahat
on 9 Aug 2017
Accepted Answer
More Answers (1)
Akhilesh Thakur
on 8 Aug 2017
0 votes
http://www.mathworks.com/matlabcentral/newsreader/view_thread/320259 Are you asking is there any command to solve ratio? Why do you need command if you can create your own function. You just have to divide and call it.
Categories
Find more on Mathematics in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!