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
Solving Equations with MATLAB (Taken from the Book "MATLAB for Beginners: A Gentle Approach") Rating: 3 out of 5 stars3/5A Brief Introduction to 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/5Kindergarten Mazes: Simple Mazes for Kids Rating: 0 out of 5 stars0 ratingsGraphs with MATLAB (Taken from "MATLAB for Beginners: A Gentle Approach") Rating: 4 out of 5 stars4/5Corridors of Time: Poetic Reflections on the Tapestry of Time Rating: 0 out of 5 stars0 ratingsMATLAB for Beginners: A Gentle Approach - Revised Edition 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/5Computer-Controlled Systems: Theory and Design, Third Edition Rating: 3 out of 5 stars3/5Principles of Control Engineering Rating: 0 out of 5 stars0 ratingsMathematica by Example 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/5Beginning MATLAB and Simulink: From Novice to Professional Rating: 0 out of 5 stars0 ratingsDigital Signal Processing System Design: LabVIEW-Based Hybrid Programming Rating: 5 out of 5 stars5/5The Mathematica Handbook Rating: 5 out of 5 stars5/5Kronecker Products and Matrix Calculus with Applications Rating: 0 out of 5 stars0 ratingsMATLAB® by Example: Programming Basics Rating: 4 out of 5 stars4/5Numerical Methods: Using MATLAB Rating: 3 out of 5 stars3/5Matrix Algorithms in MATLAB Rating: 5 out of 5 stars5/5Getting Started with Simulink Rating: 5 out of 5 stars5/5Visual Media Processing Using MATLAB Beginner's Guide Rating: 0 out of 5 stars0 ratingsNumerical Methods for Scientists and Engineers Rating: 4 out of 5 stars4/5Numerical Linear Algebra with Applications: Using MATLAB Rating: 4 out of 5 stars4/5Digital Spectral Analysis MATLAB® Software User Guide Rating: 0 out of 5 stars0 ratingsDigital Signal Processing: A Practical Guide for Engineers and Scientists Rating: 5 out of 5 stars5/5Digital Signal Processing: Mathematical and Computational Methods, Software Development and Applications Rating: 5 out of 5 stars5/5Digital and Kalman Filtering: An Introduction to Discrete-Time Filtering and Optimum Linear Estimation, Second Edition Rating: 0 out of 5 stars0 ratingsArduino meets MATLAB: Interfacing, Programs and Simulink Rating: 0 out of 5 stars0 ratingsGNU Octave Beginner's Guide Rating: 3 out of 5 stars3/5MATLAB Programming for Biomedical Engineers and Scientists Rating: 4 out of 5 stars4/5Advanced Mathematics for Engineers and Scientists Rating: 4 out of 5 stars4/5Differential Equations, Dynamical Systems, and an Introduction to Chaos Rating: 4 out of 5 stars4/5
Mathematics For You
Basic Math & Pre-Algebra For Dummies Rating: 4 out of 5 stars4/5Quantum Physics for Beginners Rating: 4 out of 5 stars4/5Introducing Game Theory: A Graphic Guide Rating: 4 out of 5 stars4/5Mental Math Secrets - How To Be a Human Calculator Rating: 5 out of 5 stars5/5Algebra - The Very Basics Rating: 5 out of 5 stars5/5Game Theory: A Simple Introduction Rating: 4 out of 5 stars4/5Algebra I Workbook For Dummies Rating: 3 out of 5 stars3/5It's All a Game: The History of Board Games from Monopoly to Settlers of Catan Rating: 4 out of 5 stars4/5Painless Geometry Rating: 4 out of 5 stars4/5The Everything Everyday Math Book: From Tipping to Taxes, All the Real-World, Everyday Math Skills You Need Rating: 5 out of 5 stars5/5Basic Math & Pre-Algebra Workbook For Dummies with Online Practice Rating: 4 out of 5 stars4/5Limitless Mind: Learn, Lead, and Live Without Barriers Rating: 4 out of 5 stars4/5Is God a Mathematician? Rating: 4 out of 5 stars4/5The Little Book of Mathematical Principles, Theories & Things Rating: 3 out of 5 stars3/5The Everything Guide to Algebra: A Step-by-Step Guide to the Basics of Algebra - in Plain English! Rating: 4 out of 5 stars4/5Flatland Rating: 4 out of 5 stars4/5Calculus Made Easy Rating: 4 out of 5 stars4/5The Thirteen Books of the Elements, Vol. 1 Rating: 0 out of 5 stars0 ratingsThe Golden Ratio: The Divine Beauty of Mathematics Rating: 5 out of 5 stars5/5Precalculus: A Self-Teaching Guide Rating: 5 out of 5 stars5/5A Mind for Numbers | Summary Rating: 4 out of 5 stars4/5Algebra I For Dummies Rating: 4 out of 5 stars4/5Standard Deviations: Flawed Assumptions, Tortured Data, and Other Ways to Lie with Statistics Rating: 4 out of 5 stars4/5My Best Mathematical and Logic Puzzles Rating: 5 out of 5 stars5/5The Math Book: From Pythagoras to the 57th Dimension, 250 Milestones in the History of Mathematics Rating: 3 out of 5 stars3/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