Commit 67c4bd01 authored by Houtan Bastani's avatar Houtan Bastani
Browse files

block: add default argument for _dynamic functions: `varargout{1} = NaN;` #1245

parent d78f9d66
......@@ -1836,6 +1836,7 @@ DynamicModel::writeSparseDynamicMFile(const string &dynamic_basename, const stri
bool open_par = false;
mDynamicModelFile << "function [varargout] = " << dynamic_basename << "(options_, M_, oo_, varargin)\n";
mDynamicModelFile << " varargout{1} = NaN;\n";
mDynamicModelFile << " g2=[];g3=[];\n";
//Temporary variables declaration
OK = true;
......
Supports Markdown
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