Given square matrix, and solution vector, find the values of the variables
xyz = [1 -1 2; 0 2 5; 4 0 -3]; //x-y+2z; 2y+5x; 4x-3z
abc = [21; 21; 21]
y_correct = [ 9 -2 5 ];
Test suite needs to be fixed.
yeah, you're right. I'll edit later after office, thanks
only wrong solutions accepted by testsuite (on the other hand, +1 if this was in fact the intention, that was original!)
Is my wife right? Now with even more wrong husband
2 b | ~ 2 b
We love vectorized solutions. Problem 1 : remove the row average.
Reverse a matrix
Matlab Basics - y as a function of x
Maximum sum from any 2 numbers with a variable number of inputs
Rotate Matrix Depending on the input
Create tangent function out of sine function only
Beat the test suite if you can :)
Count me in
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