init
This commit is contained in:
14
FOTF Toolbox/@fotf/uminus.m
Normal file
14
FOTF Toolbox/@fotf/uminus.m
Normal file
@ -0,0 +1,14 @@
|
||||
function G=uminus(G)
|
||||
% uminus - unary minus of an FOTFS object
|
||||
%
|
||||
% G1=-G
|
||||
%
|
||||
% G - an FOT object
|
||||
% G1- the unary minus of G, i.e., -G
|
||||
|
||||
% Copyright (c) Dingyu Xue, Northeastern University, China
|
||||
% Last modified 28 March, 2017
|
||||
% Last modified 18 May, 2022
|
||||
[n,m]=size(G);
|
||||
for i=1:n, for j=1:m, G(i,j).num=-G(i,j).num; end, end
|
||||
end
|
||||
Reference in New Issue
Block a user