Need to improve the test suites.
Test of [1 1;1 1] for x and y would break current best solution
Test suite not proper
the matrix are given in the problem statement is A,B but function take x
and y and return answer in y that is bit confusing ,any how just use logic A*B^-1=I .
really too disgusting prb use isequal(fix(B),round(inv(A)))
or y=true
:)
"credit should goes to matlab's built-in function not to programmer" - parvez mh
The Hitchhiker's Guide to MATLAB
2874 Solvers
Back to basics 23 - Triangular matrix
634 Solvers
325 Solvers
"Low : High - Low : High - Turn around " -- Create a subindices vector
320 Solvers
201 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!