Integral Error message: first input argument must be a function handle
Mostrar comentarios más antiguos
h= @(p)(p./DAK(0.6,p,150))
pseudop = integral(h,14.7,5000)
DAK is a function that's largely dependent on "p"(pressure), the other inputs are constant. The first line of code works fine but I keep getting an error for the second line of code. I tried fitting an equation with p as the variable for function DAK but the fit is bad and will negatively affect my solution..
This is the error message: Error using integral (line 82) First input argument must be a function handle.
This doesn't work either because the program keeps running...
integral(@(p)(p./DAK(0.6,p,150)),14.7,5000)
2 comentarios
Birdman
el 20 de Mzo. de 2018
Can you also share your DAK function?
Temitope Amao
el 20 de Mzo. de 2018
Respuestas (0)
Categorías
Más información sobre Chemistry en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!