MATLAB: Defining a projection function

MATLABprogramming

I have defined a function of three variables
function a = test(A,B,C)
a = A.*power(B,0.3).*power(C,0.7);
end
Now I want to define a function test2 that is a function test2 that is a single variable function of C with A=1 and B=10. Please advise.

Best Answer

Try this:
test2 = @(C) test(1,10,C)
Related Question