You can define the function p(ρ,τ) as follows in MATLAB:
main.m163 chars6 linesHere, a and b are example functions defined as function handles using anonymous functions in MATLAB. You can replace them with your own functions as per your requirement.
In the code above, we are defining result as the output of the function, which is obtained by multiplying the output of function a(tau) with the output of exp(-rho*b(tau)).
Note: In MATLAB, exp(x) function returns the exponential of x.
Now you can call this function p by passing values of rho and tau as arguments:
main.m46 chars4 lines
This call will return the value of p(ρ,τ) when ρ=3 and τ=5 (taken as example inputs).
Hope this helps!
gistlibby LogSnag