Cody

Problem 2864. Matlab Basics - Absolute Value

Created by Yaz Majeed in Community

Write a script that returns the absolute value of the elements in x

e.g. x = [-1 -2 -3 -4] --> y = [1 2 3 4]

Solution Stats

91.32% Correct | 8.68% Incorrect
Last solution submitted on Mar 12, 2019

Problem Comments

Recent Solvers234

Suggested Problems

More from this Author28

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

MATLAB Academy

New to MATLAB?

Learn MATLAB today!