You only asked to solve the specific problem given, not a general problem, so the answer is x =4 and y=5. Rephrase your question please.
Solves the example only, but not the general case.
I have introduced a few more tests so this non-general solution is no longer valid. Thanks.
Well, this works here, but numerically this is a bad idea of solving a linear equation system.
middleAsColumn: Return all but first and last element as a column vector
393 Solvers
758 Solvers
Sum the elements in either diagonal of a square matrix
180 Solvers
Fahrenheit to Celsius converter
361 Solvers
The sum of the numbers in the vector
430 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!