We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d47a676 commit 9768d0aCopy full SHA for 9768d0a
mex/gemmi.cpp
@@ -87,9 +87,9 @@ class MexFunction : public matlab::mex::Function {
87
std::shared_ptr<matlab::engine::MATLABEngine> matlabPtr = getEngine();
88
matlab::data::ArrayFactory factory;
89
90
- if (outputs.size() < 1 || outputs.size() > 2) {
+ if (outputs.size() > 2) {
91
matlabPtr->feval(u"error",
92
- 0, std::vector<matlab::data::Array>({ factory.createScalar("This function requires one or two output arguments.") }));
+ 0, std::vector<matlab::data::Array>({ factory.createScalar("This function accepts at most two output arguments.") }));
93
}
94
95
size_t numArgs = inputs.size();
0 commit comments