Hi, I have a function declaration. In that function I add .NET library. When I try to use import, Matlab gives error 'function writem() not found'. On debugging I find that the debugger does not go to that line statement 'import..' but bypasses it leading to ther error. Any ideas why?
However, once I remove function definition and run it as a script everything works. Or else if I write 'something_hello.writem()', it works- obviously.
I am running R2009a.
Here is the code