I am trying to solve a system of equations in MATLAB with 3 variables and 5 constants. Is it possible to solve for the three variables with solve while keeping the constants as symbolic and not replacing them with numerical values?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
When you use the SOLVE function (from the Symbolic Toolbox) you can specify the variables you want to solve for. For example, let’s say you have three equations with variables
x,y, andzand constantsaandb. The following will give you a structureSwith fields'x','y', and'z'containing symbolic equations for those variables which include the constantsaandb:If symbolic solutions can’t be found for a system of equations, numeric solutions will be returned instead.