230 likes | 245 Views
Discover the benefits and drawbacks of MATLAB, including ease of use, predefined functions, and flexibility. Learn key commands and how to perform a volume calculation for a cylindrical tank.
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