Skip to Main Content
Programming in MATLAB ®: A Problem-Solving Approach by Pearson
book

Programming in MATLAB ®: A Problem-Solving Approach by Pearson

by Ram N. Patel, Ankush Mittal
May 2024
Intermediate to advanced content levelIntermediate to advanced
433 pages
13h 7m
English
Pearson India
Content preview from Programming in MATLAB ®: A Problem-Solving Approach by Pearson
Using the Debugger É 225
8.2 Types of Errors
The three major types of bugs are typographic errors (typos), syntax errors, and algorithmic
errors. They are described as follows:
1. A typographic error is a simple typing error. For example, suppose you wanted to write
y = sin(x) but instead you wrote y = sim(x), then you will not obtain the correct result. If
the error occurs while you are typing a function name, it can be easier to fi nd. But if you
mistype a variable name, it can lead to unexpected results that can be extremely diffi cult to
track down and eliminate. For example, if you type x = cos(y); when you intended to type
x = cos(t); and t is a vector of different size than y, you will likely receive an error message
about the size of ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Applied Numerical Methods Using MATLAB, 2nd Edition

Applied Numerical Methods Using MATLAB, 2nd Edition

Won Y. Yang, Wenwu Cao, Jaekwon Kim, Kyung W. Park, Ho-Hyun Park, Jingon Joung, Jong-Suk Ro, Han L. Lee, Cheol-Ho Hong, Taeho Im
MATLAB Recipes: A Problem-Solution Approach

MATLAB Recipes: A Problem-Solution Approach

Michael Paluszek, Stephanie Thomas
Practical MATLAB Deep Learning: A Projects-Based Approach

Practical MATLAB Deep Learning: A Projects-Based Approach

Michael Paluszek, Stephanie Thomas, Eric Ham

Publisher Resources

ISBN: 9781306983440Publisher Website