Solving a equation for the X value with the given Y value
6 views (last 30 days)
Show older comments
Hi all,
I have a function like this "y = @(x) (x./E) + (x./K).^(1/n);" with E = 209000, K = 1230, n = 0.1610 respectively. Basically, it is a Ramberg-Osgood equation. How can I solve it with the input of y = [0:0.0006:0.006] for x value?
Thanks in advance.
Kon
2 Comments
Accepted Answer
madhan ravi
on 2 Apr 2019
Result=zeros(numel(y),1);
for k=2:numel(y)
Result(k)=fzero(@(x)(x./E) + (x./K).^(1/n)-y(k),100*k);
end
2 Comments
More Answers (0)
See Also
Categories
Find more on Logical 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!