Find product of eigenvalues of n*n magic matrix.
Matrix= [ 8 1 6;
3 5 7;
4 9 2]
Hello, Andriy Kavetsky. The tolerance in test 2 of the Test Suite is quite strange. As written, it seems that a result that is 1000 times larger than the true answer would be accepted as adequate. See Problem 44690 & Problem 44691 for some alternative cues. Also, it is recommended that at least four cases be provided in a Test Suite, though more are often necessary to prevent hard-coded workarounds. —DIV
Filter AC, pass DC
Generate a vector like 1,2,2,3,3,3,4,4,4,4
Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
Find the Nth Root of a Given Number
Find sum of negative elements in row.
Opposite task convert string hexadecimal numbers array into array of decimal numbers .
Find the sides of an isosceles triangle when given its area and height from its base to apex
Select primes from the matrix.
Multiply two polynomials p and q given in in vector representation.
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