• book

From the Publisher

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.

Topics: Problem Solving, Beginner, Informative, and How-To Guides

Published: Peter Kattan on
ISBN: 9781301517800
List price: $4.95
Read on Scribd mobile: iPhone, iPad and Android.
Availability for Programming with MATLAB: Taken From the Book "MATLAB for ...
With a 30 day free trial you can read online for free
  1. This book can be read on up to 6 mobile devices.

Related Articles

3 min read

Declutter Your Office by Updating Your Personal Tech

Ah, spring: a time of renewal, shaking off winter's cobwebs and getting your house--and office--in order. It's time for a going-over of not only the supply closet and file cabinet but of desktops (physical and virtual), office systems and technology. That means ditching the dust-collecting file racks, jettisoning obsolete hardware and sending cubicle-side sentimental keepsakes back home where they belong. "Things go in waves with office design, and it definitely feels like things are moving toward a less cluttered office approach," says Stephen Searer, founder of OfficeSnapshots.com, an online
Popular Science
1 min read

This Powerful Arduino Board Lets You Dive Into The World Of Electronics

You would have to be returning from Mars to have missed the Arduino revolution. The SainSmart UNO utilizes all the same software in an even more powerful package. Stack Commerce You would have to be returning from Mars to have missed the Arduino revolution. These powerful microcontrollers allow people with all skill levels to build impressive electronics projects that were previously reserved for big corporations. The SainSmart UNO utilizes all the same software in an even more powerful package. You can get one now for $53.99 via the Popular Science Shop. Based on the ATmega328, this Arduino b
2 min read

How Onboard Data Can Help Your Business

Whether you run your own business or commute to someone else’s, you are highly dependent on your vehicle. Automatic, a free app combined with a $100 wireless adapter, can help optimize this costly and essential part of your operation.   The Automatic adapter plugs into a vehicle’s onboard computer via its ODB-II diagnostics port and connects to an iOS or Android smartphone via Bluetooth. With built-in GPS, the device keeps track of where your vehicle goes or -- perhaps even more useful -- where it’s parked. An accelerometer detects impacts, helping Automatic monitor for accidents and alerting