How to delete a workspace variable from s function

1 view (last 30 days)
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 Comments
Anand Rangaramu
Anand Rangaramu on 13 May 2013
Found the answer
mexEvalString("clear('global','MyTable_Map')");
Kaustubha Govind
Kaustubha Govind on 13 May 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!

Sign in to comment.

Accepted Answer

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

More Answers (0)

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!