EDIT: I have edited this section of my question as advised by Ammer Hamza.
To minimise an underconstrained linear symbolic system equations in the form of:
a1*X1i + a2*X2i + a3*X3i + a4*X4i + a5*X5i = Yi
(where i=1 to 100)
I have 5 coefficients (X1 to X5), which I have as inputs from a spreadsheet, 5 unknown variables (a1 to a5), and 100 equations.
Hi, I have referred to the other threads on the same error message but I am still unable to solve my problem. I have an underconstrained linear symbolic equation generated from other variables that I would like to minimise. Below is a simplified example of the script I have:
EDITED after comments from Alan Weiss:
This is the error message I get:
Error using fzero (line 241)
FZERO cannot continue because user-supplied function_handle ==> @(a1,a2)[a1+a2-3.0,a1.*2.0+a2-4.0,a1-a2+1.0] failed with the error
Not enough input arguments.
Additionally, is this a suitable function or the best function to solve this problem? I have 5 coefficients, 5 variables and 100 equations.
Thank you very much.