1 / 33

About Matlab

About Matlab. Chapter 1. What’s in this Chapter?. What is Matlab? Student Edition of Matlab How is Matlab used in industry? Problem Solving in Engineering and Science. Section 1.1 What is Matlab?.

annew
Download Presentation

About Matlab

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. About Matlab Chapter 1

  2. What’s in this Chapter? • What is Matlab? • Student Edition of Matlab • How is Matlab used in industry? • Problem Solving in Engineering and Science

  3. Section 1.1 What is Matlab? • Matlab is one of a number of commercially available, sophisticated mathematical computation tools • Others include • Maple • Mathematica • MathCad

  4. Matlab excels at • Numerical calculations • Especially involving matrices • Graphics • Matlab stands for Matrix Laboratory

  5. Why Matlab • Easy to use • Versatile • Built in programming language • Not a general purpose language like C++ or Java

  6. Matlab was originally written in Fortran, then later rewritten in C

  7. Matlab 7 • Matlab is updated regularly • Versions that predate Matlab 5.5 are substantially different

  8. Release Numbers • The Mathworks packages their software in groups, called releases • Release 14 includes • Matlab 7 • Simulink 6.1 • A number of specialized “toolboxes”

  9. New Release Naming System • During Spring 2006 Matlab changed to a new system for naming their releases • They will be issuing updates twice a year 2006a 2006b

  10. Section 1.2Student Edition of Matlab • Matlab comes in both a student and professional edition • Student editions are available for • Windows Operating Systems • Mac OS • Linux

  11. The student edition of release 14 includes • Full featured Matlab 7 • Simulink 6.1 – limited to 1000 blocks • Major portions of the Symbolic toolbox • Other toolboxes may be purchased separately

  12. The command prompt is the biggest difference you’ll notice >> is the command prompt for the professional version EDU>> is the command prompt for the student version

  13. Section 1.3How is Matlab used in Industry? • Widespread, especially in the signal processing field • Tool of choice in Academia for most engineering fields • Some examples….

  14. Electrical Engineering These images simulate the visual system used in a housefly brain to detect collisions. The techniques developed are being used in autonomous robot systems that depend upon vision for navigation. The data was processed using Matlab

  15. Biomedical Engineering These images were created from MRI scan data using Matlab. The actual data set is included with the standard Matlab installation, allowing you experiment with manipulating the data yourself.

  16. Fluid Dynamics Results from a finite element analysis code were post processed using Matlab to create this image.

  17. Section 1.4Problem Solving in Engineering and Science • State the Problem • Describe the input and output • Develop an algorithm • Solve the problem • Test the solution

  18. State the Problem • If you don’t have a clear understanding of the problem, it’s unlikely that you’ll be able to solve it • Drawing a picture often helps you understand the system better

  19. Describe the Input and Output • Be careful to include units • Identify constants • Label your sketch • Group information into tables

  20. Develop an Algorithm • Identify any equations relating the knowns and unknowns • Work through a simplified version of the problem by hand or with a calculator • Developing a flow chart is often useful for complicated problems

  21. Solve the problem • Create a Matlab solution • Be generous with comments, so that others can follow your work

  22. Test the Solution • Compare to the hand solution • Do your answers make sense physically? • Is your answer really what was asked for? • Graphs are often useful ways to check your calculations for reasonableness

  23. If you use a consistent problem solving strategy you increase the chance that your result is correct Here’s an example….

  24. Albert Einstein E=mc2 The sun is fueled by the conversion of matter to energy How much matter does the sun consume every day? Example 1.1

  25. State the Problem • Find the amount of matter necessary to produce the amount of energy radiated by the sun everyday

  26. Describe the Input and Output • Input • Rate of energy radiation • E = 385*1024 Joules/second • Speed of light • c = 3.0*108 meters/second • Output • Mass in kilograms

  27. Develop an Algorithm – Hand Example • The energy radiated in one day is: • Rearrange E=mc2 and solve for m • m=E/c2

  28. But the units are wrong!! 1 J = 1 kg m2/sec2

  29. Develop a Matlab Solution to Solve the Problem • We’ll start learning the details of how to use Matlab in the next chapter. • However, you can see from the following demonstration just how easy it is to use the command window

  30. To restart the demonstration click in the Matlab window Use the down arrow on the keyboard to proceeed to the next slide

  31. Test your Solution • Matches the hand solution • Is it reasonable? • Consider… • Mass of the sun = 2*1020 kg • How long would it take to consume all that mass?

  32. time = (mass of the sun)/(rate of consumption) That’s 15 trillion years!!Yes – this is a reasonable result

  33. Summary • Matlab is widely used • Matlab is easy to use • A systematic problem solving strategy makes it more likely you’ve found the right answer

More Related