www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/AbsoluteValueofVectorExample.m
%% Absolute Value of Vector %% % Create a numeric vector of real values. x = [1.3 -3.56 8.23 -5 -0.01]' %% % Find the absolute value of the elements of the vector. y = abs(x)