Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

New to MATLAB?

Problem 1508. Change the sign

Created by Claudio Gelmi

Given a matrix x, return one with each diagonal element replaced by its absolute value, and each off-diagonal element replaced by minus the absolute value of the largest element in absolute value in its row...


Problem Group

Solution Statistics

26 correct solutions 32 incorrect solutions
Last solution submitted on Jun 26, 2015