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
just y=1 can pass
Test suite has been improved
only test case is 1, so no real solution is needed. also the problem seems reversed.
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)))
"credit should goes to matlab's built-in function not to programmer" - parvez mh
Times 2 - START HERE
Get the area codes from a list of phone numbers
Number of 1s in the Binary Representation of a Number
"Low : High - Low : High - Turn around " -- Create a subindices vector
Find nth maximum
How many days does the cat take to climb out of the hole?
How long do each of the stages of the rocket take to burn?
Pythagorean perfect squares: find the square of the hypotenuse and the length of the other side
Flip the main diagonal of a matrix
Find the treasures in MATLAB Central and discover how the community can help you!
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office