The solution is to turn the solve block into a function of a and b and all this function (vectorized) with two data vectors as argument.
If these data vectors are not of the same dimension and you want to solve for every combination of values from the two vectors, then a small program routine would be necessary.
See if the attached would help.
Vectorization is not really necessary in case of your equations, but is used here just to be on the safe side.
At the end of the sheet you find a different approch using symbolics, which gives you both pairs of x/y for every a/b. The solve block will only give you one, depending on the guess values you provide and/or additional constraints.
Welcome to the PTC Community
No account yet? Create an account
Please use your PTC eSupport account.
LoginEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.

