How to delete a workspace variable from s function

3 次查看(过去 30 天)
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 个评论
Anand Rangaramu
Anand Rangaramu 2013-5-13
Found the answer
mexEvalString("clear('global','MyTable_Map')");
Kaustubha Govind
Kaustubha Govind 2013-5-13
Anand: Thanks for posting your solution. Please post it as an answer if possible, so it is clear that your question is resolved. Thanks!

请先登录,再进行评论。

采纳的回答

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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Naming Conventions 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by