230 likes | 234 Views
ISE 212 ENGINEERING COMPUTING. Chapter 2 MATLAB Environment. Advantages Ease of Use Predefined Functions Graphical User Interface Device-Independent Plotting Platform Independence Flexibility. Disadvantages Slower Cost. Windows Command Figure Edit/Debug.
E N D
AdvantagesEase of Use Predefined Functions Graphical User Interface Device-Independent Plotting Platform Independence Flexibility
MATLAB Desktop Major ToolsCommand Window Command History APPS Launch Pad Edit/Debug Figure Workspace Browser / Array Editor Help Browser Current Directory Browser
Search Path Protocol1. Variable 2. Function (built-in) 3. Command (built-in) 4. M-file (current directory) 5. M-file (search path)
Important Commandsclc – clear Command Window clf – clear Figure Window clear – clear variables in Workspace ! – embeds operating system commands directly into programs
Volume of a Circular CylinderThe volume of a circular cylinder of height h and radius r is given by V = πr2h. A cylindrical tank is 15 m tall and has a radius of 8 m. Construct another cylindrical tank with a volume 20 % greater but having the same height. How large must its radius be?Note: π = pi √ = sqrt