没有合适的资源?快使用搜索试试~ 我知道了~
MICHAEL THOMAS STEPHANIE PALUSZEK - MATLAB RECIPES a problem-sol...
需积分: 5 0 下载量 132 浏览量
2023-01-29
09:01:03
上传
评论
收藏 10.48MB PDF 举报
温馨提示
试读
423页
MICHAEL THOMAS STEPHANIE PALUSZEK - MATLAB RECIPES a problem-solution approach.-APRESS (2021).pdf
资源推荐
资源详情
资源评论
MATLAB
Recipes
A Problem-Solution Approach
—
Second Edition
—
Michael Paluszek
Stephanie Thomas
MATLAB Recipes
A Problem-Solution Approach
Second Edition
Michael Paluszek
Stephanie Thom as
MATLAB Recipes: A Problem-Solution Approach
Michael Paluszek Stephanie Thomas
Princeton, NJ Princeton Junction, NJ
USA USA
ISBN-13 (pbk): 978-1-4842-6123-1 ISBN-13 (electronic): 978-1-4842-6124-8
https://doi.org/10.1007/978-1-4842-6124-8
Copyright © 2020 by Michael Paluszek and Stephanie Thomas
This work is subject to copyright. All rights are reserved by the Publisher, whether the whole or part of the material is
concerned, specifically the rights of translation, reprinting, reuse of illustrations, recitation, broadcasting, reproduction on
microfilms or in any other physical way, and transmission or information storage and retrieval, electronic adaptation, com-
puter software, or by similar or dissimilar methodology now known or hereafter dev eloped.
Trademarked names, logos, and images may appear in this book. Rather than use a trademark symbol with every occur-
rence of a trademarked name, logo, or image we use the names, logos, and images only in an editorial fashion and to the
benefit of the trademark owner, with no intention of infringement of the trademark.
The use in this publication of trade names, trademarks, service marks, and similar terms, even if they are not identified as
such, is not to be taken as an expression of opinion as to whether or not they are subject to proprietary rights.
While the advice and information in this book are believed to be true and accurate at the date of publication, neither the
authors nor the editors nor the publisher can accept any legal responsibility for any errors or omissions that may be made.
The publisher makes no warranty, express or implied, with respect to the material contained herein.
Managing Director, Apress Media LLC: Welmoed Spahr
Acquisitions Editor: Steve Anglin
Development Editor: Matthew Moodie
Coordinating Editor: MarkPo wers
Cover designed by eStudioCalamar
Cover image by Christopher Burns on Unsplash (www.unsplash.com)
Distributed to the book trade worldwide by Springer Science+Business Media New York, 233 Spring Street, 6th Floor,
New York, NY 10013. Phone 1-800-SPRINGER, fax (201) 348-4505, e-mail orders-ny@springer-sbm.com, or visit
www.springeronline.com. Apress Media, LLC is a California LLC and the sole member (o wner) is Springer Science +
Business Media Finance Inc (SSBM Finance Inc). SSBM Finance Inc is a Delaware corporation.
For information on translations, please e-mail booktranslations@springernature.com; for reprint, paperback, or audio
rights, please e-mail bookpermissions@springernature.com.
Apress titles may be purchased in bulk for academic, corporate, or promotional use. eBook versions and licenses are also
available for most titles. For more information, reference our Print and eBook Bulk Sales web page at http://www.apress.
com/bulk-sales.
Any source code or other supplementary material referenced by the author in this book is available to readers on GitHub via
the book’s product page, located at www.apress.com/9781484261231. For more detailed information, please visit http://
www.apress.com/source-code.
Contents
About the Authors XV
Acknowledgements XVII
Introduction XIX
I Coding in MATLAB 1
1 Coding Handbook 3
MATLAB Language Primer .............................. 3
Brief Introduction to MATLAB ......................... 3
Everything Is a Matrix ............................. 6
Strings Are Simple ............................... 8
Use Strict Data Structures ........................... 9
Cell Arrays Hold Anything and Everything .................. 11
Optimize Your Code with Logical Arrays ................... 12
Use Persistent and Global Scope to Minimize Data Passing .......... 12
Understanding Unique MATLAB Operators and K eywords .......... 14
Harnessing the Po wer of Multiple Inputs and Outputs ............. 16
Use Function Handles for Efficiency ...................... 17
Numerics .................................... 18
Images ...................................... 18
Datastore .................................... 20
Tall Arrays ................................... 22
Sparse Matrices ................................. 22
Tables and Categoricals ............................. 23
Large MAT-files ................................. 23
Advanced Data Types .............................. 25
1.1 Initializing a Data Structure Using Parameters ................. 25
Problem ..................................... 26
Solution ..................................... 26
How It Works .................................. 26
III
CONTENTS
1.2 Performing mapreduce on an Image Datastore ................. 29
Problem ..................................... 29
Solution ..................................... 29
How It Works .................................. 29
1.3 Creating a Table from a File .......................... 31
Problem ..................................... 32
Solution ..................................... 32
How It Works .................................. 32
1.4 Processing Table Data ............................. 33
Problem ..................................... 33
Solution ..................................... 33
How It Works .................................. 34
1.5 String Concatenation .............................. 37
Problem ..................................... 37
Solution ..................................... 37
How It Works .................................. 37
1.6 Arrays of Strings ................................ 37
Problem ..................................... 37
Solution ..................................... 37
How It Works .................................. 37
1.7 Non-English Strings .............................. 38
Problem ..................................... 38
Solution ..................................... 38
How It Works .................................. 38
1.8 Substrings .................................... 39
Problem ..................................... 39
Solution ..................................... 39
How It Works .................................. 39
1.9 Using JSON-Formatted Strings ......................... 39
1.10 Creating Function Help ............................. 40
Problem ..................................... 40
Solution ..................................... 40
How It Works .................................. 40
1.11 Locating Directories for Data Storage ..................... 42
Problem ..................................... 42
Solution ..................................... 42
How It Works .................................. 42
1.12 Loading Binary Data from a File ........................ 43
Problem ..................................... 43
Solution ..................................... 43
How It Works .................................. 43
IV
剩余422页未读,继续阅读
资源评论
zhouxiangyong88
- 粉丝: 2
- 资源: 110
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功