02.03.2016 Views

MATLAB by rudra pratap

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Honorable<br />

• Mentions<br />

There are mainly three other significant facilities in <strong>MATLAB</strong>, which we mention<br />

here, but leave it to the reader to explore as and when required.<br />

9.1 Debugging Tools<br />

<strong>MATLAB</strong> supports a built-in debugger, which consists of several commands such as<br />

dbclear, dbcont , dbdown, dbquit, dbstack, dbstatus, dbstep, dbstop, dbtype,<br />

dbup, etc. You can use these commands to help you debug your <strong>MATLAB</strong> programs.<br />

You can write these commands in your M-file that you want to debug, or you can<br />

invoke them interactively <strong>by</strong> clicking on them in the editor/debugger window. See<br />

the on-line help under debug for details of these commands.<br />

9.2 External Interface: Mex-files<br />

If you wish to dynamically link your Fortran or C programs to <strong>MATLAB</strong> functions<br />

so that they can communicate and exchange data, you need to learn about Mexfiles.<br />

Consult MA TLAB External Interfaces [4] to learn about these files. The<br />

process of developing Mex-files is fairly complicated and highly system-dependent.<br />

You should perhaps first consider nondynamic linking with your external programs<br />

through standard ASCII data files.<br />

9.3 Graphical User Interface<br />

It is also possible to design your own graphical user interface (CUI) with menus,<br />

buttons, and slider controls in <strong>MATLAB</strong>. This facility is very useful if you are<br />

developing an application package to be used <strong>by</strong> others. You can build many visual<br />

"user-friendly" features in your application. For more information, consult Creating<br />

Graphical User Interfaces [5].

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!