Programming with MATLAB: Taken From the Book "MATLAB for Beginners: A Gentle Approach"
By Peter Kattan
4.5/5
()
About this ebook
This concise article of thirty pages takes you on a short tour on how to write small programs using MATLAB. The presentation covers both script files and function files. Several programming constructs are illustrated with simple examples. Loops are discussed using the For and While loops, while decisions are implemented using the If Else and Switch Case constructs. At the end of the presentation, a simple example is presented to show symbolic computing with the If Else statement. The presentation is made in the form of solved examples showing the exact MATLAB commands used and the output. At the end of the article, there are about eleven unsolved exercises for students to practice. The solutions to all the exercises are also provided. This article is taken form the bestselling book “MATLAB for Beginners: A Gentle Approach.” The material presented is not intended to be comprehensive or exhaustive but merely an introduction to programming using MATLAB.
Read more from Peter Kattan
A Brief Introduction to MATLAB: Taken From the Book "MATLAB for Beginners: A Gentle Approach" Rating: 3 out of 5 stars3/5Solving Equations with MATLAB (Taken from the Book "MATLAB for Beginners: A Gentle Approach") Rating: 3 out of 5 stars3/5Matrices with MATLAB (Taken from "MATLAB for Beginners: A Gentle Approach") Rating: 3 out of 5 stars3/5Graphs with MATLAB (Taken from "MATLAB for Beginners: A Gentle Approach") Rating: 4 out of 5 stars4/5Kindergarten Mazes: Simple Mazes for Kids Rating: 0 out of 5 stars0 ratingsMATLAB for Beginners: A Gentle Approach - Revised Edition Rating: 0 out of 5 stars0 ratingsCorridors of Time: Poetic Reflections on the Tapestry of Time Rating: 0 out of 5 stars0 ratings
Related to Programming with MATLAB
Related ebooks
MATLAB for Beginners: A Gentle Approach - Revised Edition Rating: 3 out of 5 stars3/5Matlab: A Practical Introduction to Programming and Problem Solving Rating: 4 out of 5 stars4/5Top Numerical Methods With Matlab For Beginners! Rating: 0 out of 5 stars0 ratingsDigital Modulations using Matlab Rating: 4 out of 5 stars4/5Mathematica by Example Rating: 5 out of 5 stars5/5Computer-Controlled Systems: Theory and Design, Third Edition Rating: 3 out of 5 stars3/5The Mathematica Handbook Rating: 5 out of 5 stars5/5Introduction to Partial Differential Equations: From Fourier Series to Boundary-Value Problems Rating: 3 out of 5 stars3/5Essential MATLAB for Engineers and Scientists Rating: 2 out of 5 stars2/5Kronecker Products and Matrix Calculus with Applications Rating: 0 out of 5 stars0 ratingsPrinciples of Control Engineering Rating: 0 out of 5 stars0 ratingsC Programming Concepts Rating: 0 out of 5 stars0 ratingsMATLAB® by Example: Programming Basics Rating: 4 out of 5 stars4/5Visual Media Processing Using MATLAB Beginner's Guide Rating: 0 out of 5 stars0 ratingsNumerical Linear Algebra with Applications: Using MATLAB Rating: 4 out of 5 stars4/5Matrix Algorithms in MATLAB Rating: 5 out of 5 stars5/5Numerical Methods: Using MATLAB Rating: 3 out of 5 stars3/5Getting Started with Simulink Rating: 5 out of 5 stars5/5Arduino meets MATLAB: Interfacing, Programs and Simulink Rating: 0 out of 5 stars0 ratingsSimulation of Digital Communication Systems Using Matlab Rating: 4 out of 5 stars4/5Numerical Methods for Scientists and Engineers Rating: 4 out of 5 stars4/5Introduction to Linear Control Systems Rating: 0 out of 5 stars0 ratingsLaplace Transforms and Their Applications to Differential Equations Rating: 5 out of 5 stars5/5Model-Based Engineering for Complex Electronic Systems Rating: 5 out of 5 stars5/5Applied Partial Differential Equations Rating: 5 out of 5 stars5/5Digital Signal Processing: Mathematical and Computational Methods, Software Development and Applications Rating: 5 out of 5 stars5/5MATLAB Programming for Biomedical Engineers and Scientists Rating: 4 out of 5 stars4/5Computational Methods in Engineering Rating: 1 out of 5 stars1/5Linear Algebra and Linear Operators in Engineering: With Applications in Mathematica® Rating: 0 out of 5 stars0 ratings
Mathematics For You
Game Theory: A Simple Introduction Rating: 4 out of 5 stars4/5Algebra - The Very Basics Rating: 5 out of 5 stars5/5Mental Math Secrets - How To Be a Human Calculator Rating: 5 out of 5 stars5/5Quantum Physics for Beginners Rating: 4 out of 5 stars4/5Geometry For Dummies Rating: 5 out of 5 stars5/5Is God a Mathematician? Rating: 4 out of 5 stars4/5Basic Math & Pre-Algebra For Dummies Rating: 4 out of 5 stars4/5Precalculus: A Self-Teaching Guide Rating: 5 out of 5 stars5/5Summary of The Black Swan: by Nassim Nicholas Taleb | Includes Analysis Rating: 5 out of 5 stars5/5Calculus Made Easy Rating: 4 out of 5 stars4/5The Everything Guide to Algebra: A Step-by-Step Guide to the Basics of Algebra - in Plain English! Rating: 4 out of 5 stars4/5Real Estate by the Numbers: A Complete Reference Guide to Deal Analysis Rating: 0 out of 5 stars0 ratingsAlgebra I Workbook For Dummies Rating: 3 out of 5 stars3/5Introducing Game Theory: A Graphic Guide Rating: 4 out of 5 stars4/5The Golden Ratio: The Divine Beauty of Mathematics Rating: 5 out of 5 stars5/5The Thirteen Books of the Elements, Vol. 1 Rating: 0 out of 5 stars0 ratingsThe Little Book of Mathematical Principles, Theories & Things Rating: 3 out of 5 stars3/5Sneaky Math: A Graphic Primer with Projects Rating: 0 out of 5 stars0 ratingsSee Ya Later Calculator: Simple Math Tricks You Can Do in Your Head Rating: 4 out of 5 stars4/5My Best Mathematical and Logic Puzzles Rating: 5 out of 5 stars5/5Relativity: The special and the general theory Rating: 5 out of 5 stars5/5The Everything Everyday Math Book: From Tipping to Taxes, All the Real-World, Everyday Math Skills You Need Rating: 5 out of 5 stars5/5Limitless Mind: Learn, Lead, and Live Without Barriers Rating: 4 out of 5 stars4/5A Mind for Numbers | Summary Rating: 4 out of 5 stars4/5
Reviews for Programming with MATLAB
3 ratings0 reviews
Book preview
Programming with MATLAB - Peter Kattan
Programming with MATLAB
Taken from the Book
MATLAB for Beginners: A Gentle Approach
Peter I. Kattan
Petra Books
www.PetraBooks.com
Copyright
Peter I. Kattan, PhD
Correspondence about this book may be sent to the author at one of the following two email addresses:
pkattan@alumni.lsu.edu
pkattan@tedata.net.jo
Programming with MATLAB. Taken from the Book MATLAB for Beginners: A Gentle Approach
.
Written by Peter I. Kattan.
Smashwords Edition.
All rights reserved. No part of this book may be copied or reproduced without written permission of the author or publisher.
© 2011 Peter I. Kattan
Preface
This concise article of thirty pages takes you on a short tour on how to write small programs using MATLAB. The presentation covers both script files and function files. Several programming constructs are illustrated with simple examples. Loops are discussed using the For and While loops, while decisions are implemented using the If Else and Switch Case constructs. At the end of the presentation, a simple example is presented to show symbolic computing with the If Else statement.
The presentation is made in the form of solved examples showing the exact MATLAB commands used and the output. At the end of the article, there are about eleven unsolved exercises for students to practice. The solutions to all the exercises are also provided. This article is taken form the bestselling book MATLAB for Beginners: A Gentle Approach.
The material presented is not intended to be comprehensive or exhaustive but merely an introduction to programming using MATLAB.
Table of Contents:
Programming
Exercises
Solutions to Exercises
References
MATLAB Books
Installation of MATLAB