MATLAB solver, calling on pre-defined variables within the equations -


So I'm wondering how to input the pre-defined variables in the equations themselves.

Here's the code.

  function [A, B, C] = A_B_C_problem_generalized (lambda_1, lambda_2, mu_1, mu_2, gamma_1, gamma_2) Clear clc syms a1 a2 a4b1b2b4 c1 c2c4 [A1, A2, A4, B1, B2, B4, C1, C2, C4] = ... solution ('a1 + a4 = lambda_1 + lambda_2' ... 'a1 * a4 - a2 ^ 2 = lambda_1 * lambda_2 ', ... ..' B1 + B4 = mu_1 + mu_2 ', ...' B1 * b4 - b2 ^ 2 = mu_1 * mu_2 ', ...' c1 + c4 = 'Gamma_1 + gamma_2', ... 'c1 * c4 - c2 ^ 2 = gam_1 * gam_2', ... 'c1 = a1 + b1', ... 'c2 = a2 + b2', ... ' C4 = a4 + b4 '); ...   

How can I go about doing this? The number of lambda's, mu k, and gamma is expected to be added to you.

After

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -