• Complain

Kattan - MATLAB for beginners: a gentle approach

Here you can read online Kattan - MATLAB for beginners: a gentle approach full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. City: Ottawa, year: 2009;2012, publisher: BookBaby;Petra Books, genre: Children. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

Kattan MATLAB for beginners: a gentle approach
  • Book:
    MATLAB for beginners: a gentle approach
  • Author:
  • Publisher:
    BookBaby;Petra Books
  • Genre:
  • Year:
    2009;2012
  • City:
    Ottawa
  • Rating:
    3 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 60
    • 1
    • 2
    • 3
    • 4
    • 5

MATLAB for beginners: a gentle approach: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "MATLAB for beginners: a gentle approach" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

This book is written for beginners and students who wish to learn MATLAB. One of the objectives of writing this book is to introduce MATLAB to students in high schools. The material presented is very easy and simple to understand written in a gentle manner. The topics covered in the book include arithmetic operations, variables, mathematical functions, complex numbers, vectors, matrices, programming, graphs, solving equations, and an introduction to calculus. In addition, the MATLAB Symbolic Math Toolbox is emphasized in this book. There are also over 230 exercises at the ends of chapters for students to practice. Detailed solutions to all the exercises are provided in the second half of the book. The author has been using MATLAB for the past fifteen years and is the author of the best selling book MATLAB Guide to Finite Elements. This description applies to the Revised Edition.

Kattan: author's other books


Who wrote MATLAB for beginners: a gentle approach? Find out the surname, the name of the author of the book and a list of all author's works by series.

MATLAB for beginners: a gentle approach — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "MATLAB for beginners: a gentle approach" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make

Peter I. Kattan, PhD

Correspondence about this book may be sentto the author at one of the following two emailaddresses:


MATLAB for Beginners: A Gentle Approach, Revised Edition, written by Peter I. Kattan.
ISBN-13: 978-0-578-03642-7
All rights reserved. No part of this book may be copied or reproduced without written permission of the author or publisher.
2009 Peter I. Kattan

In Loving Memory of My Father MATLAB for Beginners A Gentle Approach Revised - photo 1

In Loving Memory of My Father

MATLAB for Beginners
A Gentle Approach
Revised Edition
Preface

This book is written for people who wish to learn MATLAB for the first time. The book is really designed for beginners and students. In addition, the book is suitable for students and researchers in various disciplines ranging from engineers and scientists to biologists and environmental scientists. The book is intended to be used as a first course in MATLAB in these areas. Students at both the undergraduate level and graduate level may benefit from this book. The material presented has been simplified to such a degree such that the book may also be used for students and teachers in high schools at least for performing simple arithmetic and algebraic manipulations. One of the objectives of writing this book is to introduce MATLAB and its powerful and simple computational abilities to students in high schools.

The material presented increases gradually in difficulty from the first few chapters on simple arithmetic operations to the last two chapters on solving equations and an introduction to calculus. In particular, the material presented in this book culminates in Chapters 6 and 7 on vectors and matrices, respectively. There is no discussion of strings, character variables or logical operators in this book. The emphasis is on computational and symbolic aspects. In addition, the MATLAB Symbolic Math Toolbox is emphasized in this book. A section is added at the end of each chapter (except chapters 1 and 9) dealing with various aspects of algebraic and symbolic computations with the Symbolic Math Toolbox. In fact, the final chapter on calculus assumes entirely the use of this toolbox.

Chapter 1 provides an overview of MATLAB and may be skipped upon a first reading of the book. The actual material in sequence starts in Chapter 2 which deals with arithmetic operations. Variables are introduced in Chapter 3 followed by mathematical functions in Chapter 4. The important topic of complex numbers is covered in Chapter 5. This is followed by Chapters 6 and 7 on vectors and matrices, respectively, which provide the main core of the book. In fact, MATLAB stands for MATrix LABoratory thus a long chapter is devoted to matrices and matrix computations. An introduction to programming using MATLAB is provided in Chapter 8. Plotting two-dimensional and three-dimensional graphs is covered in some detail in Chapter 9. Finally, the last two chapters (10 and 11) present solving equations and an introduction to calculus using MATLAB.

The material presented in this book has been tested with version 7 of MATLAB and should work with any prior or later versions. There are also over 230 exercises at the ends of chapters for students to practice. Detailed solutions to all the exercises are provided in the second half of the book. The material presented is very easy and simple to understand written in a gentle manner. An extensive references list is also provided at the end of the book with references to books and numerous web links for more information. This book will definitely get you started in MATLAB. The references provided will guide you to other resources where you can get more information.

I would like to thank my family members for their help and continued support without which this book would not have been possible. In this edition, I am providing two email addresses for my readers to contact me - .


August 2009

Peter I. Kattan

1. Introduction

In this introductory chapter a short MATLAB tutorial is provided. This tutorial describes the basic MATLAB commands needed. More details about these commands will follow in subsequent chapters. Note that there are numerous free MATLAB tutorials on the internet check references []. This chapter may be skipped on a first reading of the book.

In this tutorial it is assumed that you have started MATLAB on your computer system successfully and that you are now ready to type the commands at the MATLAB prompt (which is denoted by double arrows >>). For installing MATLAB on your computer system, check the web links provided at the end of the book.

Entering scalars and simple operations is easy as is shown in the examples below:

>> 2*3+5
ans =
11

The order of the operations will be discussed in subsequent chapters.

>> cos(60*pi/180)
ans =
0.5000

The argument for the cos command and the value of pi will be discussed in subsequent chapters.

We assign the value of 4 to the variable x as follows:

>> x = 4
x =
4
>> 3/sqrt(2+x)
ans =
1.2247


To suppress the output in MATLAB use a semicolon to end the command line as in the following examples. If the semicolon is not used then the output will be shown by MATLAB:

>> y = 30;
>> z = 8;
>> x = 2; y-z;
>> w = 4*y + 3*z
w =
144

MATLAB is case-sensitive, i.e. variables with lowercase letters are different than variables with uppercase letters. Consider the following examples using the variables x and X :

>> x = 1
x =
1
>> X = 2
X =
2
>> x
x =
1
>> X
X =
2

Use the help command to obtain help on any particular MATLAB command. The following example demonstrates the use of help to obtain help on the det command which calculated the determinant of a matrix:

>> help det
DET Determinant.
DET(X) is the determinant of the square matrix X.
Use COND instead of DET to test for matrix singularity.
See also cond.
Overloaded functions or methods (ones with the same name in other directories)
help sym/det.m
Reference page in Help browser doc det

The following examples show how to enter matrices and perform some simple matrix operations:

>> x = [1 2 3 ; 4 5 6 ; 7 8 9]
x =
123
456
789
>> y = [1 ; 0 ; -4]
y =
1
0
-4
>> w = x*y
w =
-11
-20
-29

Let us now see how to use MATLAB to solve a system of simultaneous algebraic equations. Let us solve the following system of simultaneous algebraic equations:

11 We will use Gaussian elimination to solve the above system of equations - photo 2 (1.1)

We will use Gaussian elimination to solve the above system of equations. This is performed in MATLAB by using the backslash operator \ as follows:

>> A= [3 5 -1 ; 0 4 2 ; -2 1 5]
A =
35 -1
042
-2 15
>> b = [2 ; 1 ; -4]
b =
2
1
-4
>> x = A\b
x =
-1.7692
1.1154
-1.7308

It is clear that the solution is x1 = -1.7692, x2 = 1.1154, and x3 = -1.7308. Alternatively, one can use the inverse matrix of A to obtain the same solution directly as follows:

>> x = inv(A)*b
x =
-1.7692
1.1154
-1.7308

It should be noted that using the inverse method usually takes longer than using Gaussian elimination especially for large systems of equations.

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «MATLAB for beginners: a gentle approach»

Look at similar books to MATLAB for beginners: a gentle approach. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «MATLAB for beginners: a gentle approach»

Discussion, reviews of the book MATLAB for beginners: a gentle approach and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.