multiplication of functions integration problem
5 views (last 30 days)
Hello,i have two functions "fun" and "coef_fun"
"coef_fun" was created with interpolation of the attached CSV and it looks like in the photo bellow.
I have integrated fun over some interval ,and i got some numeric result.
When i tried to integrate the multiplication of fun and coeff_fun (in order to see the reduction the the numeric result)
It gives me an error "Undefined operator '*' for input arguments of type 'function_handle'"
i have attached my code.
Where did i go wrong in integrating multiplication of functions?
%Default Dataset_new file
data = load('Default Dataset4.csv');
x = data(:,1);
y = data(:,2);
data_x1=x*0.000001; %transform to micron
[data_k, index] = unique(data_x1);