Solving a equation for the X value with the given Y value
7 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Yat Sheng Kong
el 2 de Abr. de 2019
Comentada: madhan ravi
el 2 de Abr. de 2019
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 comentarios
Respuesta aceptada
madhan ravi
el 2 de Abr. de 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 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Logical en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!