![]() sym/linsolve just does some extra input checking and and rank calculation to mirror the capabilities of linsolve. You might not have sym/linsolve, but does this work: s mod (sym (A)sym (b),8) That will basically do the same thing. Solve(5*y + 4*z + q = 2946321, x + 7*y + 2*q = 5851213, 8*x + y + 2*q = 2563617, 10*x + 5*y + z = 10670279,x,y,z,q)Īnd the output is: ? Error using => charĬonversion to char from logical is not possible. The Symbolic Math toolbox math toolbox has changed a lot (for the better) over the years. Here's what I'm attempting: syms x y z q I've also tried to use the function solve for this, however even if I construct the equations represented by the matrices A and b above, I'm having issues. ![]() Here is the code I'm attempting to execute (from the answer at the above link): A = Īnd the output is: ? Undefined function or method linsolve' for input arguments of type 'sym'. Is using linsolve with sym variables only possible in R2013b? I've also tried it with my school's copy, which is R2012b. However, when I try to run the commands from the provided answer, or the linsolve help page, I get an error saying linsolve doesn't support arguments of type 'sym'. I asked a question a few days ago here and got an answer that seems like it would work- it involves using linsolve to find the solutions to a system of equations that are all modulo p, where p is a non-prime integer.
0 Comments
Leave a Reply. |