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'. 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. 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. The Symbolic Math toolbox math toolbox has changed a lot (for the better) over the years.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |