How to work on Matlab.......

15,480 views
15,039 views

Published on

Published in: Business, Technology
0 Comments
7 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
15,480
On SlideShare
0
From Embeds
0
Number of Embeds
80
Actions
Shares
0
Downloads
740
Comments
0
Likes
7
Embeds 0
No embeds

No notes for slide

How to work on Matlab.......

  1. 1. INTRODUCTION TO MATLAB SUBMITTED BY CHINMAYA MAHAPATRA
  2. 2. WHAT IS MATLAB <ul><li>MATLAB stands for matrix laboratory. It is a high-performance language for technical computing. It integrates computation, visualization, and programming in an easy-to-use environment where problems and solutions are expressed in familiar mathematical notation </li></ul>
  3. 3. USES <ul><li>Math and computation </li></ul><ul><li>Algorithm development </li></ul><ul><li>Data acquisition </li></ul><ul><li>Modeling, simulation, and prototyping </li></ul><ul><li>Data analysis, exploration, and visualization </li></ul><ul><li>Scientific and engineering graphics </li></ul><ul><li>Application development, including graphical user interface building </li></ul>
  4. 4. MATLAB LANGUAGE <ul><li>It accepts only vectors or arrays as inputs. </li></ul><ul><li>All the valid syntax of ‘c’ and ‘c++’ are valid syntax here. </li></ul><ul><li>Writing a program in MATLAB is just like writing an algorithm. </li></ul><ul><li>It is user friendly . </li></ul><ul><li>Many default commands do those works which require big programs to be written in ‘c’ or ‘c++’. </li></ul>
  5. 5. STARTING AND QUITTING MATLAB <ul><li>To start MATLAB on Microsoft Windows platform </li></ul><ul><li>select the Start -> Programs -> MATLAB 7.0 -> MATLAB 7.0 </li></ul><ul><li>Double-click the MATLAB shortcut icon on your Windows desktop. </li></ul><ul><li>To quit MATLAB </li></ul><ul><li>Click the close box × in the MATLAB desktop. </li></ul><ul><li>Select Exit MATLAB from the desktop File menu. </li></ul><ul><li>Type quit at the Command Window prompt. </li></ul>
  6. 6. MATLAB WINDOW
  7. 7. WRITING A PROGRAM IN MATLAB <ul><li>Follow the steps written and the figure shown </li></ul><ul><li>Open a mat (.m) file in the MATLAB window . </li></ul><ul><li>Click on file menu -> save -> your file name.m to save a file in MATLAB for further use . </li></ul><ul><li>All the saved files can be accessed from the workspace directory present in MATLAB folder. </li></ul><ul><li>Results of all the command written in .m editor can be seen in command prompt if programs are written without semicolon in .m editor. </li></ul><ul><li>Press F5 to run the program after saving it. </li></ul>
  8. 10. <ul><li>Write clc; (to clear screen) </li></ul><ul><li>Close all; (to clear command history) </li></ul><ul><li>Clear all; (to clear workspace history) </li></ul><ul><li>Figure below shows some command in command window. Just type </li></ul><ul><li>x, y and x+y. </li></ul>
  9. 14. SIMPLE PLOT BAR PLOT STEM PLOT
  10. 16. CONCLUSION <ul><li>This provides the basic knowledge on MATLAB. </li></ul><ul><li>In the MATLAB window by typing help all the commands can be found out. </li></ul><ul><li>In the MATLAB window go to help toolbox . </li></ul><ul><li>In that go to bioinformatics toolbox to perform jobs like </li></ul><ul><li>Blast </li></ul><ul><li>Sequence alignment </li></ul><ul><li>Phylogenetic analysis </li></ul><ul><li>Micro array analysis </li></ul>

×