I have the following code:
f1_p1 = @(xq1) interp1(x_j1,p1,xq1);
f2_p1 = @(xq2) interp1(x_j2,p1,xq2);
new_p1x1 = @(xq1,xq2) f1_p1(xq1).*f2_p1(xq2);
To plot f1_p1
and f2_p2
is easy, I do:
fplot(f1_p1, [30,70])
My question
How can I plot the second function (new_p1x1
)? I have tried the same as before but it doesn't work....(fplot(new_p1x1, [30,70])
) I get:
Error using @(xq1,xq2)f1_p1(xq1).*f2_p1(xq2)
Not enough input arguments.
Thanks for your help!!!