Skip to content
Snippets Groups Projects
Verified Commit 48fc9a82 authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Fixed bug.

Frequency is passed as a member of the dates class.
parent 69dd8b0a
No related branches found
No related tags found
No related merge requests found
......@@ -17,8 +17,8 @@ function s = subperiod(d)
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
if freq==365 || freq==1
error('Method not available for daily or annual frequencies.')
if d.freq==365
error('Method not available for daily frequency.')
end
s = d.time(2);
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment