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
Back to basics 13 - Input variables
What is the distance from point P(x,y) to the line Ax + By + C = 0?
Getting the row and column location from a matrix
Fahrenheit to Celsius converter
Matlab Basics - Rounding III
Opposite task convert string hexadecimal numbers array into array of decimal numbers .
For given vectors x,y find coresponding spline coefficients.
For given xx,x, y vectors build spline of x and y and find yy values for xx vector.
Delete x value in given vector y.
Find scalar product of two polynomials a and b, given as vector array.
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