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
Vector Concepts É 263
>> A(~B) = A(~B)/10 % Dividing by 10 those values
% that do not correspond to Inf
A =
1 1000 3
4 8 10
1000 -7 20
Time for Practice 9.1
What are the outputs of the following?
1.
>> A = [38 23 0 -4 15 55 0 23 9];
>> B = A > 10
2.
>> M = [201 57; 202 45; 204 97; 205 34; 206 77; 207 89; 210 94]
>> B = M(M(:, 2) > 50, :)
9.2.2 Utility Functions
There are several utility functions that can help in efficient creation of matrices or com-
putation of some function over a matrix. Some of these functions have already been intro-
duced in Chapters 2 and 4. Here we would revisit them to unfold a greater capacity of their
functionality.
The ...
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