

because of some annoying auto-editing that instructables does, the code as seen on this page WILL NOT WORK, you HAVE TO DOWNLOAD THE FILE I attached instead of copying and pasting this. because of some annoying auto-editing that instructables does, the code as seen on the next page WILL NOT WORK, you HAVE TO DOWNLOAD THE FILE I attached instead of copying and pasting this. copying and pasting it and making slight modifications) #. Read through the file in your text editor (for instance notepad in windows), it is very well documented and self explanatory, you will be able to do almost anything you need by following the conventions in the code (i.e. On the right you can see me compiling the code and then executing it from matlab. Notice on the left side, the current directory contains the. Don't worry about the "command line warning", it doesn't seem to effect anything. In the picture below you can see the code working. I can't write these instructions here because instructables auto-edits the commands and makes them appear incorrectly. save the file to your computer start matlab navigate in matlab to the directory where the file is then follow the compilation and execution instructions at the top of the. It prints "hello world" in matlab it returns two arguments to matlab, a two element number array and a string the first element of the returned number array is 1 + the number you sent it the second element of the returned number array is 2 + the number you sent it. it takes a number that you send it from the matlab command prompt. Download the file I attached: mextest1p0.cpp cpp stands for c++.
