How to delete a workspace variable from s function

3 Ansichten (letzte 30 Tage)
Anand Rangaramu
Anand Rangaramu am 30 Apr. 2013
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 Kommentare
Anand Rangaramu
Anand Rangaramu am 13 Mai 2013
Found the answer
mexEvalString("clear('global','MyTable_Map')");
Kaustubha Govind
Kaustubha Govind am 13 Mai 2013
Anand: Thanks for posting your solution. Please post it as an answer if possible, so it is clear that your question is resolved. Thanks!

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Anand Rangaramu
Anand Rangaramu am 6 Jun. 2013
Found the answer
mexEvalString("clear('global','MyTable_Map')");

Weitere Antworten (0)

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by