Skip to content
Snippets Groups Projects
Commit 82e49059 authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Create options_.varobs as a cell array.

parent 42bd3ee8
No related branches found
No related tags found
No related merge requests found
...@@ -253,14 +253,14 @@ SymbolTable::writeOutput(ostream &output) const throw (NotYetFrozenException) ...@@ -253,14 +253,14 @@ SymbolTable::writeOutput(ostream &output) const throw (NotYetFrozenException)
if (observedVariablesNbr() > 0) if (observedVariablesNbr() > 0)
{ {
output << "options_.varobs = [];" << endl; int ic = 1;
output << "options_.varobs = cell(1);" << endl;
for (vector<int>::const_iterator it = varobs.begin(); for (vector<int>::const_iterator it = varobs.begin();
it != varobs.end(); it++) it != varobs.end(); it++)
if (it == varobs.begin()) {
output << "options_.varobs = '" << getName(*it) << "';" << endl; output << "options_.varobs(" << ic << ") = {'" << getName(*it) << "'};" << endl;
else ic++;
output << "options_.varobs = char(options_.varobs, '" << getName(*it) << "');" << endl; }
output << "options_.varobs_id = [ "; output << "options_.varobs_id = [ ";
for (vector<int>::const_iterator it = varobs.begin(); for (vector<int>::const_iterator it = varobs.begin();
it != varobs.end(); it++) it != varobs.end(); it++)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment