www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/NegateElementsofMatrixExample.m

    %% Negate Elements of Matrix  

%% 
% Create a 2-by-2 matrix, |A|. 
A = [1 -3; -2 4]  

%% 
% Negate the elements of |A|. 
C = -A