I have a simple equations to solve and I want to do it in matlab,however, there are some years, that I didn't use and kinda forgot it. So this
linsolve({(387=mod(324*a+b,601)), (491=mod(381*a+b,601))},{a,b}),
doesn't give me a result, due to an a mistake I am not able to find. the original set of equations is:
(324a+b)mod601=387 (381a+b)mod601=491,
affine cipher apparently. Thank you!
Try this First make you function describing equations in a separate file with the name myfunc.m:
than apply
fsolvelikex0is a guess to the solution. This method gives an approximate numerical solution around your guess.fsolvesolves a system of nonlinear equations. It has many parameters, you can read about them in MATLAB help.Let me know if it works