Latest YouTube Video

Wednesday, January 17, 2018

Anonymous Function with natural log inside

I am trying to make an anonymous function with a natural log inside. Here is my code: p = @(h)29.921*(1 - 6.8753*10^-6.*h); T = @(p)49.161*log(p) + 44.932; h = -500:14439; p(h); T(p); plot(h,T(p)). When I run it, I get this error: Undefined function 'log' for input arguments of type 'function_handle'. Error in ...

from Google Alert - anonymous http://ift.tt/2mKPmPh
via IFTTT

No comments: