[C,D] = fprintf(V,File,...)
V [ VAR ] - VAR object that will be printed to a model file.
File [ char | cellstr ] - Filename, or filename format string, under which the model code will be saved.
Output arguments
C [ cellstr ] - Text string with the model code for each parameterisation.
D [ cell ] - Parameter databases for each parameterisation; if 'hardParameters=' true, the database will be empty.
See help on sprintf for options available.
For VAR objects with Na multiple alternative parameterisations, the filename File must be either a 1-by-Na cell array of string with a filename for each parameterisation, or a sprintf format string where a single occurence of '%g' will be replaced with the parameterisation number.