{"action":"created","issue":{"url":"https://api.github.com/repos/tbeu/matio/issues/35","repository_url":"https://api.github.com/repos/tbeu/matio","labels_url":"https://api.github.com/repos/tbeu/matio/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/tbeu/matio/issues/35/comments","events_url":"https://api.github.com/repos/tbeu/matio/issues/35/events","html_url":"https://github.com/tbeu/matio/issues/35","id":146507802,"number":35,"title":"size of mat file grows on successive calls","user":{"login":"kupiqu","id":3875196,"avatar_url":"https://avatars.githubusercontent.com/u/3875196?v=3","gravatar_id":"","url":"https://api.github.com/users/kupiqu","html_url":"https://github.com/kupiqu","followers_url":"https://api.github.com/users/kupiqu/followers","following_url":"https://api.github.com/users/kupiqu/following{/other_user}","gists_url":"https://api.github.com/users/kupiqu/gists{/gist_id}","starred_url":"https://api.github.com/users/kupiqu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kupiqu/subscriptions","organizations_url":"https://api.github.com/users/kupiqu/orgs","repos_url":"https://api.github.com/users/kupiqu/repos","events_url":"https://api.github.com/users/kupiqu/events{/privacy}","received_events_url":"https://api.github.com/users/kupiqu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-04-07T04:38:14Z","updated_at":"2016-04-07T14:08:51Z","closed_at":null,"body":"Hi,\r\n\r\nI use Mat_Open compared to Mat_CreateVer, as typically my mat files contain multiple variables.\r\n\r\nIn this context, I realized that on multiple executions of a code, its associated mat file grows, as if the implicated variables were appended instead of replaced by their new values. \r\n\r\nHope you understand what I mean. Please let me know otherwise, and I will try to clarify this further.\r\n\r\nVery useful library btw, thanks!"},"comment":{"url":"https://api.github.com/repos/tbeu/matio/issues/comments/206923603","html_url":"https://github.com/tbeu/matio/issues/35#issuecomment-206923603","issue_url":"https://api.github.com/repos/tbeu/matio/issues/35","id":206923603,"user":{"login":"tbeu","id":5444067,"avatar_url":"https://avatars.githubusercontent.com/u/5444067?v=3","gravatar_id":"","url":"https://api.github.com/users/tbeu","html_url":"https://github.com/tbeu","followers_url":"https://api.github.com/users/tbeu/followers","following_url":"https://api.github.com/users/tbeu/following{/other_user}","gists_url":"https://api.github.com/users/tbeu/gists{/gist_id}","starred_url":"https://api.github.com/users/tbeu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbeu/subscriptions","organizations_url":"https://api.github.com/users/tbeu/orgs","repos_url":"https://api.github.com/users/tbeu/repos","events_url":"https://api.github.com/users/tbeu/events{/privacy}","received_events_url":"https://api.github.com/users/tbeu/received_events","type":"User","site_admin":false},"created_at":"2016-04-07T14:08:51Z","updated_at":"2016-04-07T14:08:51Z","body":"What about looping over Mat_VarDelete, e.g.,\r\n```c\r\nwhile (0 == Mat_VarDelete(mat, varname));\r\n```"}}