How to delete a workspace variable from s function

Hello all
I am adding a variable using mexPutVariable function and reading the variable rom mexGetVariable function in s function (level 2 c). Question is how to delete the variable i created using mexPutVariable in workspace at the end? (Terminate function).
Thanks, Anand

2 comentarios

Found the answer
mexEvalString("clear('global','MyTable_Map')");
Anand: Thanks for posting your solution. Please post it as an answer if possible, so it is clear that your question is resolved. Thanks!

Iniciar sesión para comentar.

 Respuesta aceptada

Anand Rangaramu
Anand Rangaramu el 6 de Jun. de 2013

0 votos

Found the answer
mexEvalString("clear('global','MyTable_Map')");

Más respuestas (0)

Productos

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by