Routine string2freq should not be case sensitive. Character 'A' is allowed for yearly (annual) dates.

time-shift
Stéphane Adjemian (Charybdis) 2013-10-12 23:47:51 +02:00
parent 49a6e265e3
commit 04c206a9b6
1 changed files with 2 additions and 2 deletions

View File

@ -23,8 +23,8 @@ function freq = string2freq(s)
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
switch s
case 'Y'
switch upper(s)
case {'Y','A'}
freq = 1;
case 'Q'
freq = 4;