correcting bug in forcing real values for complex elements of Jacobian in static model
parent
282f34b2d3
commit
912b22d0e9
|
@ -1193,7 +1193,7 @@ StaticModel::writeStaticMFile(const string &func_name) const
|
|||
}
|
||||
|
||||
output << " if ~isreal(g1)" << endl
|
||||
<< " g1 = real(g1)+2*imag(g1);" << endl
|
||||
<< " g1 = real(g1)+imag(g1).^2;" << endl
|
||||
<< " end" << endl
|
||||
<< "end" << endl
|
||||
<< "if nargout >= 3," << endl
|
||||
|
|
Loading…
Reference in New Issue