Given a matrix, return the first eigen value
x = magic(5)
17 24 1 8 15
23 5 7 14 16
4 6 13 20 22
10 12 19 21 3
11 18 25 2 9
the function return the last term of eigen vector:
y = 13.126
How is it possible that the same matrix x in test 2 and test3 give different results? I guess you copy in the test 3 the wrong matrix?
Impossible to understand the tests
Too much variation on how many digits of precision you want
Now should be ok. Sorry but it is my first problem published.
For any question write me.
Add more tests to make this question's scores more relevant!
Find the numeric mean of the prime numbers in a matrix.
Back to basics 1 - Saving
Stuff the Board
Spot the outlier
Generate a vector like 1,2,2,3,3,3,4,4,4,4
subtract central cross
Find the function 2
frame of the matrix
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