Fundamentals of Data Science with MATLAB: Introduction to Scientific Computing, Data Analysis, and Data Visualization
Order at Amazon: https://www.amazon.com/dp/1735241016
In this book, readers learn about:
- Programming with the MATLAB language
- Data science, analysis, and visualization with the MATLAB language
- MATLAB arrays• MATLAB statistical functions
- MATLAB tables• Time-series in MATLAB
- Data visualization with MATLAB
- Interpolation, curve fitting, root finding, and numerical integration
- Signal processing and digital filtering
- Reading and writing data files
- Chapter 1 Set Up MATLAB 1
- 1.1 Introduction to MATLAB Language 21.2 Install MATLAB 21.3 MATLAB Desktop 31.4 MATLAB Toolboxes and Packages 31.5 Run MATLAB Script 4
- Chapter 2 Introduction to MATLAB Programming 7
- 2.1 MATLAB Syntax Style 82.2 MATLAB Built-in Functions, Add-on Toolboxes, and Third-Party Packages 102.3 Mathematical Operators 112.4 Comparison Operators 132.5 Logical Operators 142.6 Integer and Floating Point 152.7 Complex Numbers 162.8 Strings 182.9 Vector Creation 272.10 The if Statement 292.11 The for Statement 352.12 The while Statement 392.13 Define a Function 412.14 The varargin 482.15 Define Anonymous Function 502.16 Name-Value Pair Arguments 522.17 Tilde ( ~ ) 522.18 Working with File and Directory 53
- Chapter 3 Introduction to MATLAB Array 55
- 3.1 MATLAB Arrays 563.2 Vector, Matrix, and Array 573.3 Vector 583.4 Matrix 593.5 Multi-Dimensional Array 613.6 Array Data Type 613.7 Array Dimension 633.8 Array Indexing 653.9 Array Slicing 673.10 Indexing by Index Array 723.11 Logical Indexing 743.12 Change Element Contents in Array 773.13 Cell Array 783.14 Structure Array 80
- Chapter 4 Working with MATLAB Array 85
- 4.1 Copy Array 864.2 Append, Insert, and Delete Array Elements 864.3 Obtain Array Shape and Size 894.4 Reshape Array 944.5 Flip Array 964.6 Concatenate Arrays 984.7 Array Initialization 1024.8 Element-Wise Operation and Comparison 1054.9 Find Indexes 1064.10 NaN and Inf 1094.11 Generate Sequence of Numbers 110
- Chapter 5 Basic Statistics 115
- 5.1 Array Dimension 1165.2 Statistical Functions 1165.3 Sum and Mean of Array 1175.4 Minimum and Maximum of Array 1195.5 Sort Array 1225.6 Random Number 1245.7 Generate Reproducible Random Number 1275.8 Histogram and Probability Density Function of Dataset 128
- Chapter 6 Introduction to MATLAB Table 133
- 6.1 Table 1346.2 Create Table 1346.3 Table Properties and Functions 1376.4 Table Indexing and Slicing 1396.5 Change Item Contents in Tables 143
- Chapter 7 Working with Table 147
- 7.1 Functions and Properties 1487.2 Append, Insert, and Delete Single Row or Single Column 1487.3 Append, Insert, and Delete Multiple Rows or Multiple Columns 1537.4 Concatenate Tables 1577.5 Merge and Join Tables 1617.6 Rearrange Columns 1677.7 Arithmetic and Element-Wise Operation 1697.8 Apply Function 1707.9 Group Data 1727.10 Clean and Fill Missing Data 1817.11 Rolling Window 186
- Chapter 8 Date, Time, and Time-Series 193
- 8.1 Date and Time in MATLAB 1948.2 Generate Time-Series with MATLAB 1998.3 Generate Time-Table 2018.4 Time-Table Indexing and Slicing 2068.5 Shift Data in Time-Table 2108.6 Clean and Fill Missing Data in Time-Table 2128.7 Resampling Time-Table 216
- Chapter 9 Introduction to Data Visualization with MATLAB 225
- 9.1 MATLAB Plots 2269.2 Line Plot 2279.3 Set Color 2319.4 Set Line Style and Line Width 2349.5 Add Marker 2369.6 Add Labels 2399.7 Set Axis Limits and Ticks 2409.8 Add Grid Lines 2439.9 Add Text and Annotation 2449.10 Add Mathematical Text 2479.11 Plot Multiple Lines and Add Legend 2509.12 Create Multiple Figures 2549.13 The get and set Functions 2559.14 Remove White Space around Axes 2619.15 Explore Plot Interactively 262
- Chapter 10 Advanced Data Visualization with MATLAB 263
- 10.1 Colormaps 26410.2 Extract Colors from Colormap 26610.3 Create Colormap 26710.4 Scatter Plot 26810.5 Contour and Image Plot 27210.6 Bar Plot 27510.7 Histogram Plot 27610.8 Axes 27910.9 Create Subplots 28210.10 Create Unequal Subplots 28610.11 Procedural and Object-Oriented Plotting 28910.12 Time-Series Plot 29210.13 The 3-Dimensional Plot 29510.14 Map Plot 297
- Chapter 11 Interpolation, Curve Fitting, Root Finding, and Numerical Integration with MATLAB 305
- 11.1 Generate 1-Dimensional Grid Coordinates 30611.2 Generate 2-Dimensional Grid Coordinates 30711.3 The 1-Dimensional Interpolation 30911.4 The 2-Dimensional Interpolation 31111.5 Curve Fitting 31611.6 Curve Fitting by Optimization 31911.7 Root Finding 32111.8 Solve System of Linear Equations 32411.9 Numerical Integration 325
- Chapter 12 Introduction to Signal Processing 327
- 12.1 Wave Function 32812.2 Sampling Frequency 32912.3 Control Data Quality 33212.4 Detrend Data 33512.5 Time and Frequency Domains 33712.6 Fourier Analysis 33912.7 Fast Fourier Transform 34012.8 Frequency Ordering of Fast Fourier Transform 34112.9 Double-Sided FFT and Single-Sided FFT 34412.10 Wave Amplitudes from FFT 34712.11 Estimate Power Spectral Density from FFT 35012.12 Estimate Power Spectral Density from Periodogram and Welch Method 354
- Chapter 13 Basics of Window Function and Digital Filter 359
- 13.1 Convolution 36013.2 Window Function 36013.3 Digital Filter 36413.4 Digital Filter Band-Forms 36713.5 Basic Low-Pass FIR Filter 36813.6 Basic High-Pass, Band-Pass and Band-Stop FIR Filters 37213.7 Design Basic FIR Filters with MATLAB 37413.8 Smooth Data by Moving Average 37713.9 Smooth Data by Savitzky-Golay Filter 38213.10 Smooth Data by Butterworth Filter 38413.11 Filter Out Frequency Range from Data 386
- Chapter 14 Read and Write Data Files 393
- 14.1 Read Text and ASCII Files with fopen 39414.2 Read CSV Files 39714.3 Read Text, ASCII, and CSV Files as Array 39814.4 Read Text, ASCII, and CSV Files as Table 39914.5 Save and Load Data Files 400
References 403
Index 405
CC BY-NC-SA 4.0 License
Fundamentals of Data Science with MATLAB: Introduction to Scientific Computing, Data Analysis, and Data Visualization
Copyright (c) 2022 Arash Karimpour
All rights reserved
Fundamentals of Data Science with MATLAB: Introduction to Scientific Computing, Data Analysis, and Data Visualization © 2020 by Arash Karimpour is licensed under CC BY-NC-SA 4.0 (https://creativecommons.org/licenses/by-nc-sa/4.0/)