×
SUCCESS DOESN'T HAPPEN TO YOU. IT HAPPENS BECAUSE OF YOU
--Your friends at LectureNotes
Close

Note for Numerical Methods And Matlab - NM By Yanendra Sah

  • Numerical Methods And Matlab - NM
  • Note
  • 114 Views
  • 4 Offline Downloads
  • Uploaded 8 months ago
0 User(s)
Download PDFOrder Printed Copy

Share it with your friends

Leave your Comments

Text from page-1

Getting Started with MATLAB A Quick Introduction for Scientists and Engineers (Updated for MATLAB 6)  Rudra Pratap Department of Mechanical Engineering Indian Institute of Science, Bangalore New York Oxford Oxford University Press 2002

Text from page-2

Disclaimer Under no circumstances does the author assume any responsibility and liability thereof, for any injury caused to the reader by toxic fumes and explosions resulting from mixing incompatible matrices and vectors. Array operations are known to cause irritability and minor itching to beginners. The author, however, might buy the reader a cup of coffee in the case of serious distress. In rare cases of very flattering comments or very creative suggestions about improving this book, the author might even buy the reader lunch. The reader is encouraged to try his/her luck by sending comments to pratap@mecheng.iisc.ernet.in or rp28@cornell.edu = 5 l’) : pi arg=0:0.1 ll nu ua A ’eq 5 is( ce 1 tra ) p(5 ex ax 1:10

Text from page-3

To Ma Gayatri and my parents Shri Chandrama Singh and Smt. Bachcha Singh

Text from page-4

Contents Preface 1 1 Introduction 1.1 What Is MATLAB? . . . . . . . . . . . . . . . . 1.2 Does MATLAB Do Symbolic Calculations? . . . 1.3 Will MATLAB Run on My Computer? . . . . . . 1.4 Where Do I Get MATLAB? . . . . . . . . . . . . 1.5 How Do I Use This Book? . . . . . . . . . . . . . 1.6 Basics of MATLAB . . . . . . . . . . . . . . . . 1.6.1 MATLAB windows . . . . . . . . . . . . . 1.6.2 On-line help . . . . . . . . . . . . . . . . . 1.6.3 Input-Output . . . . . . . . . . . . . . . . 1.6.4 File types . . . . . . . . . . . . . . . . . . 1.6.5 Platform dependence . . . . . . . . . . . . 1.6.6 General commands you should remember 1.7 Visit This Again . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 3 5 6 6 6 8 8 9 9 12 12 15 16 2 Tutorial Lessons 2.1 Lesson 1: A Minimum MATLAB Session . . . . . . 2.2 Lesson 2: Working with Arrays of Numbers . . . . 2.3 Lesson 3: Creating and Printing Simple Plots . . . 2.4 Lesson 4: Creating, Saving, and Executing a Script 2.5 Lesson 5: Creating and Executing a Function File 2.6 Lesson 6: Working with Files and Directories . . . . . . . . . . . . File . . . . . . . . . . . . . . . . . . . . . . . . 19 21 25 29 33 37 42 3 Interactive Computation 3.1 Matrices and Vectors . . . . . . . 3.1.1 Input . . . . . . . . . . . 3.1.2 Indexing (or Subscripting) 3.1.3 Matrix Manipulation . . . 3.1.4 Creating Vectors . . . . . 3.2 Matrix and Array Operations . . . . . . . . . . . . . . . . . . . . . . . . . . 47 49 49 50 52 55 57 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Lecture Notes