Commit 0264a6b0 authored by MichelJuillard's avatar MichelJuillard
Browse files

adding a function dynDates@decimal(dd) that transforms dynDates into a vector of double

where the integer part represents the period and the fractional part
the subperiod. Maybe we could think of a better name for the function.
parent 0ac8f4e5
function y = dynDates2decimal(dd)
% function y = dynDates2decimal(dd)
% returns a vector of doubles with the fractional part corresponding
% to the subperiod. Mostly used for plots.
% Copyright (C) 2013 Dynare Team
% This file is part of Dynare.
% Dynare is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
% Dynare is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% GNU General Public License for more details.
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <>.
y = dd.time(:,1)+(dd.time(:,2)-1)/dd.freq;
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment