|
|
|
|
mlDeleteVariable( Función) Borra un Variable de la sesión de MATLAB. aParameter is array of 1 real = [4] aResult is array of 1 by 1 real = [[123]] IF NOT mlSetVariable(gnSessionID, "i", aParameter) THEN Error("Failure writing the variable") RETURN END sCodeToRun is string = "myRoot = sqrt(i)" EDT_Result = mlExecute(gnSessionID, sCodeToRun) aResult = mlGetVariable(gnSessionID, "myRoot") IF ErrorOccurred THEN Trace("Error : " + ErrorInfo()) END Trace("Root = " + aResult[1,1]) Trace("List of variables before deletion : " + mlListVariable(gnSessionID)) mlDeleteVariable(gnSessionID, "i") mlDeleteVariable(gnSessionID, "myRoot") Trace("List of variables after deletion : " + mlListVariable(gnSessionID))
Sintaxis
<Result> = mlDeleteVariable(<Session identifier> , <Variable name>)
<Result>: booleano - True si se eliminó la variable.
- False en caso contrario. Para obtener más información sobre el error, utilice la función ErrorInfo con la constante errMessage.
<Session identifier>: Integro Identificador de la sesión de MATLAB. Este identificador es devuelto por mlInitialize. <Variable name>: Cadena de caracteres Nombre de Variable a borrar.
Esta página también está disponible para…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|