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.67% Correct | 8.33% Incorrect
Last solution submitted on Jun 17, 2019

Problem Comments