Reza In my opinion you should try to write the code by yourself because generated code sometimes bring more problems than solutions. All the matlab functions are well described in the bibliography. You can looking for the algorithms and write the code for your programming language. Optimize the code and give it an arquitectural structure to facilitate the comprehension of it latter.
Yes you can. I haven't done this myself. But know the basic framework which is similar to the way you would call it from C++ as well. What you have to do is make a DLL (mex) file from your matlab script and call that in VB. However, the last time I checked, you would need the Compiler and COM builder in Matlab to make the DLL file.
As a professor, I constantly encourage my students to see beyond the programming language. If the algorithm is clear for you, then you could "make the conversion" from one programming language to another, even regardless the complexity of those languages.
Reza In my opinion you should try to write the code by yourself because generated code sometimes bring more problems than solutions. All the matlab functions are well described in the bibliography. You can looking for the algorithms and write the code for your programming language. Optimize the code and give it an arquitectural structure to facilitate the comprehension of it latter.