Given a matrix x, return one with each diagonal element replaced by its absolute value and the largest element in absolute value of the off-diagonal elements in its row...
The title and description of this problem could use some tweaking in my opinion. For instance, it should say the largest element in absolute value *of the off-diagonal elements* in its row.
Done. Thanks Matt!
Make one big string out of two smaller strings
Numbers with prime factors 2, 3 and 5.
What is the distance from point P(x,y) to the line Ax + By + C = 0?
Determine the number of odd integers in a vector
Length of a short side
Number of vertices of a hypercube
Number of lattice points within a circle
Celsius to Fahrenheit converter
Periodic Table 101.
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