Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dóra Kocsis
dynare
Commits
aecd2a89
Commit
aecd2a89
authored
Mar 28, 2013
by
Houtan Bastani
Browse files
reporting: rename numElements as numel
parent
09931c07
Changes
5
Show whitespace changes
Inline
Side-by-side
matlab/reports/@elements/num
Elements
.m
→
matlab/reports/@elements/num
el
.m
View file @
aecd2a89
function
n
=
num
Elements
(
o
)
function
n
=
num
el
(
o
)
% function n = num
Elements
(o)
% function n = num
el
(o)
% Copyright (C) 2013 Dynare Team
% Copyright (C) 2013 Dynare Team
%
%
...
...
matlab/reports/@pages/num
Pages
.m
→
matlab/reports/@pages/num
el
.m
View file @
aecd2a89
function
n
=
num
Pages
(
o
)
function
n
=
num
el
(
o
)
% function n = num
Pages
(o)
% function n = num
el
(o)
% Sections Class Constructor
% Sections Class Constructor
%
%
% INPUTS
% INPUTS
...
...
matlab/reports/@pages/write.m
View file @
aecd2a89
...
@@ -31,7 +31,7 @@ function o = write(o, fid)
...
@@ -31,7 +31,7 @@ function o = write(o, fid)
assert
(
fid
~=
-
1
);
assert
(
fid
~=
-
1
);
fprintf
(
fid
,
'\n%% Pages Object\n'
);
fprintf
(
fid
,
'\n%% Pages Object\n'
);
nps
=
num
Pages
(
o
);
nps
=
num
el
(
o
);
for
i
=
1
:
nps
for
i
=
1
:
nps
o
.
objArray
(
i
)
.
write
(
fid
);
o
.
objArray
(
i
)
.
write
(
fid
);
end
end
...
...
matlab/reports/@section/num
Elements
.m
→
matlab/reports/@section/num
el
.m
View file @
aecd2a89
function
n
=
num
Elements
(
o
)
function
n
=
num
el
(
o
)
% function n = num
Elements
(o)
% function n = num
el
(o)
% Copyright (C) 2013 Dynare Team
% Copyright (C) 2013 Dynare Team
%
%
...
@@ -18,5 +18,5 @@ function n = numElements(o)
...
@@ -18,5 +18,5 @@ function n = numElements(o)
% You should have received a copy of the GNU General Public License
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
n
=
o
.
elements
.
num
Elements
();
n
=
o
.
elements
.
num
el
();
end
end
\ No newline at end of file
matlab/reports/@section/write.m
View file @
aecd2a89
...
@@ -37,7 +37,7 @@ for i=1:o.cols
...
@@ -37,7 +37,7 @@ for i=1:o.cols
fprintf
(
fid
,
'c'
);
fprintf
(
fid
,
'c'
);
end
end
fprintf
(
fid
,
'}\n'
);
fprintf
(
fid
,
'}\n'
);
ne
=
num
Elements
(
o
);
ne
=
num
el
(
o
);
nvspace
=
numVspace
(
o
);
nvspace
=
numVspace
(
o
);
nlcounter
=
0
;
nlcounter
=
0
;
for
i
=
1
:
ne
for
i
=
1
:
ne
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment