where f is the same array for both of the datasets and phi_real and phi_imag are the dependent variables. f_0 and Q are the shared parameters. I can fit my data to each of these functions using NLSF independently but can I run NLSF simultaneously for both, such that I get one f_0 and one Q which are the best minimizations for both of the functions ?