Skip to content
Snippets Groups Projects
Commit 6e4e16a3 authored by sebastien's avatar sebastien
Browse files

v4 ReshapeMatFiles.m: fixed bug introduced in r1103 when there is only one stored file

git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1276 ac1d8469-bf42-47a9-8791-bf33cf982152
parent 8fb8b0ff
Branches
Tags
No related merge requests found
...@@ -100,6 +100,7 @@ end ...@@ -100,6 +100,7 @@ end
else else
load([MhDirectoryName M_.fname '_' type '1']); load([MhDirectoryName M_.fname '_' type '1']);
%eval(['STOCK_' CAPtype ' = sort(stock_' type ',4);']) %eval(['STOCK_' CAPtype ' = sort(stock_' type ',4);'])
eval(['STOCK_' CAPtype ' = stock_' type ';'])
save([MhDirectoryName M_.fname '_' CAPtype 's' int2str(1)],['STOCK_' CAPtype ]); save([MhDirectoryName M_.fname '_' CAPtype 's' int2str(1)],['STOCK_' CAPtype ]);
end end
% Original file format may be useful in some cases... % Original file format may be useful in some cases...
...@@ -135,6 +136,7 @@ end ...@@ -135,6 +136,7 @@ end
else else
load([MhDirectoryName M_.fname '_' type '1']); load([MhDirectoryName M_.fname '_' type '1']);
%eval(['STOCK_' CAPtype ' = sort(stock_' type ',3);']) %eval(['STOCK_' CAPtype ' = sort(stock_' type ',3);'])
eval(['STOCK_' CAPtype ' = stock_' type ';'])
save([MhDirectoryName M_.fname '_' CAPtype 's' int2str(1)],['STOCK_' CAPtype ]); save([MhDirectoryName M_.fname '_' CAPtype 's' int2str(1)],['STOCK_' CAPtype ]);
end end
% Original file format may be useful in some cases... % Original file format may be useful in some cases...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment