problem about inner product of function
Mostra commenti meno recenti
Frist, Thanks for your attention for my question, the following is my code:
% code
function responsenum = numreponse(num)
switch num
case 1
response = @(x,y)x+y;
case 2
response = @(x,y)x*y;
function y = innerprod(fun1,fun2)
y = fun1.*fun2;
psi = dblquad(innerprod(numreponse(1),numreponse(2)),-1,1,-1,1,1e-2,@quad1)
when i run the code, the error message is "undefined function 'times' for input arguments of type 'function_handle'" . i will be appreciated if you can give me a help!ThKs
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Communications Toolbox in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!