public MatlabResult addResult(String name, MatlabValue result) {
        checkNotNull(name);
        checkNotNull(result);
        this.results.put(name, result);
        return this;
    }
public MatlabResult addResult ( String name , MatlabValue result ) { checkNotNull ( name ) ; checkNotNull ( result ) ; this . results . put ( name , result ) ; return this ; }
Adds a result {@link MatlabValue}.

@param name   the name of the result
@param result the result <code>MatlabValue</code>

@return this