Hey,
I understand that you are trying to sum all elements of a cell array which contains your function handles to create a unique function handle. You can use the ‘cellfun’ function for this purpose which is used to apply a function to each cell in a cell array.
Here’s how you could use it:
fsum = @(r,qFit,T_fitted) sum(cellfun(@(F) F(r,qFit,T_fitted), funModel));
‘fsum' is a function handle that takes the inputs r, qFit, and T_fitted, applies each function in funModel to these inputs, and then sums the results. You can then use fsum for your global fit to your experimental data.
Refer to the documentation link to the ‘cellfun’ function for more information:
Hope this helps.