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
34b28b80
Commit
34b28b80
authored
Sep 26, 2010
by
Houtan Bastani
Browse files
replace deprecated Matlab function setstr with char
parent
1a27ed9f
Changes
1
Hide whitespace changes
Inline
Side-by-side
matlab/ftest.m
View file @
34b28b80
function
ftest
(
s1
,
s2
)
% Copyright (C) 2001-200
8
Dynare Team
% Copyright (C) 2001-20
1
0 Dynare Team
%
% This file is part of Dynare.
%
...
...
@@ -41,7 +41,7 @@ lag1 = fread(fid,4,'int') ;
nvx
=
fread
(
fid
,[
n1
,
n3
],
'int'
)
;
x
=
fread
(
fid
,[
n1
,
n2
],
'float64'
)
;
fclose
(
fid
)
;
nvx
=
setst
r
(
nvx
)
;
nvx
=
cha
r
(
nvx
)
;
fid
=
fopen
(
file2
,
'r'
)
;
n1
=
fread
(
fid
,
1
,
'int'
)
;
...
...
@@ -51,7 +51,7 @@ lag2 = fread(fid,4,'int') ;
nvy
=
fread
(
fid
,[
n1
,
n3
],
'int'
)
;
y
=
fread
(
fid
,[
n1
,
n2
],
'float64'
)
;
fclose
(
fid
)
;
nvy
=
setst
r
(
nvy
)
;
nvy
=
cha
r
(
nvy
)
;
if
size
(
x
,
1
)
~=
size
(
y
,
1
)
error
(
'FTEST: The two files don
''
t have the same number of variables.'
);
...
...
Write
Preview
Supports
Markdown
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