Here is the implementation of the given functions in MATLAB:
main.m390 chars9 lines
You can call the function p
by passing the following arguments:
rho
: Scalar or matrix of size MxN - rho valuestau
: Scalar or matrix of size MxN - tau valueskappa
: Scalar - kappa valuelambda
: Scalar - lambda valuesigma
: Scalar - sigma valuetheta
: Scalar - theta valueFor example:
main.m46 chars3 lines
This will output the result of the p
function for given input values.
Note: Make sure to define all the required parameters before calling the function.
gistlibby LogSnag