MATLAB Programming Fundamentals

Book Details







MATLAB Programming Fundamentals

PDF Free Download | MATLAB Programming Fundamentals by MathWorks

Contents of MATLAB Programming Fundamentals

  • Continue Long Statements on Multiple Lines
  • Name=Value in Function Calls
  • Ignore Function Outputs
  • Variable Names
  • Valid Names
  • Conflicts with Function Names
  • Case and Space Sensitivity
  • Choose Command Syntax or Function Syntax
  • Command Syntax and Function Syntax
  • Avoid Common Syntax Mistakes
  • How MATLAB Recognizes Command Syntax
  • Resolve Error: Undefined Function or Variable
  • Issue
  • Possible Solutions
  • Program Components
  • MATLAB Operators and Special Characters
  • Arithmetic Operators
  • Relational Operators
  • Logical Operators
  • Special Characters
  • String and Character Formatting
  • Array vs Matrix Operations
  • Introduction
  • Array Operations
  • Matrix Operations
  • Compatible Array Sizes for Basic Operations
  • Inputs with Compatible Sizes
  • Inputs with Incompatible Sizes
  • Examples
  • Array Comparison with Relational Operators
  • Array Comparison
  • Logic Statements
  • Operator Precedence
  • Precedence of AND and OR Operators
  • Overriding Default Precedence
  • Average Similar Data Points Using a Tolerance
  • Group Scattered Data Using a Tolerance
  • Bit Wise Operations
  • Perform Cyclic Redundancy Check
  • Conditional Statements
  • Loop Control Statements
  • Regular Expressions
  • What Is a Regular Expression?
  • Steps for Building Expressions
  • Operators and Characters
  • Lookahead Assertions in Regular Expressions
  • Lookahead Assertions
  • Overlapping Matches
  • Logical AND Conditions
  • Tokens in Regular Expressions
  • Introduction
  • Multiple Tokens
  • Unmatched Tokens
  • Tokens in Replacement Text
  • Named Capture
  • Dynamic Regular Expressions
  • Introduction
  • Dynamic Match Expressions — (??expr)
  • Commands That Modify the Match Expression — (??@cmd)
  • Commands That Serve a Functional Purpose — (?@cmd)
  • Commands in Replacement Expressions — ${cmd}
  • Comma Separated Lists
  • What Is a Comma Separated List?
  • Generating a Comma Separated List
  • Assigning Output from a Comma Separated List
  • Assigning to a Comma Separated List
  • How to Use the Comma Separated Lists
  • Fast Fourier Transform Example
  • Alternatives to the eval Function
  • Why Avoid the eval Function?
  • Variables with Sequential Names
  • Files with Sequential Names
  • Function Names in Variables
  • Field Names in Variables
  • Error Handling
  • Classes (Data Types)
  • Overview of MATLAB Classes
  • Fundamental MATLAB Classes
  • Numeric Classes
  • Integers
  • Integer Classes
  • Creating Integer Data
  • Arithmetic Operations on Integer Classes
  • Largest and Smallest Values for Integer Classes
  • Floating Point Numbers
  • Double Precision Floating Point
  • Single Precision Floating Point
  • Creating Floating Point Data
  • Arithmetic Operations on Floating Point Numbers
  • Largest and Smallest Values for Floating Point Classes
  • Accuracy of Floating Point Data
  • Avoiding Common Problems with Floating Point Arithmetic
  • Create Complex Numbers
  • NaN
  • Identifying Numeric Classes
  • Display Format for Numeric Values
  • Integer Arithmetic
  • Single Precision Math
  • The Logical Class
  • Find Array Elements That Meet a Condition
  • Reduce Logical Arrays to Single Value
  • Characters and Strings
  • Text in String and Character Arrays
  • Create String Arrays
  • Cell Arrays of Character Vectors
  • Create Cell Array of Character Vectors
  • Access Character Vectors in Cell Array
  • Convert Cell Arrays to String Arrays
  • Analyze Text Data with String Arrays
  • Test for Empty Strings and Missing Values
  • Formatting Text
  • Fields of the Formatting Operator
  • Setting Field Width and Precision
  • Restrictions on Using ,dentifiers
  • Compare Text
  • Search and Replace Text
  • Build Pattern Expressions
  • Convert Numeric Values to Text
  • Convert Text to Numeric Values
  • Unicode and ASCII Values
  • Hexadecimal and Binary Values
  • Frequently Asked Questions About String Arrays
  • Why Does Using Command Form With Strings Return An Error?
  • Why Do Strings in Cell Arrays Return an Error?
  • Why Does length() of String Return ?
  • Why Does isempty(“”) Return ?
  • Why Does Appending Strings Using Square Brackets Return Multiple
  • Strings?
  • Update Your Code to Accept Strings
  • What Are String Arrays?
  • Recommended Approaches for String Adoption in Old APIs
  • How to Adopt String Arrays in Old APIs
  • Recommended Approaches for String Adoption in New Code
  • How to Maintain Compatibility in New Code
  • How to Manually Convert Input Arguments
  • How to Check Argument Data Types
  • Terminology for Character and String Arrays
  • Dates and Time
  • Represent Dates and Times in MATLAB
  • Specify Time Zones
  • Convert Date and Time to Julian Date or POSIX Time
  • Set Date and Time Display Format
  • Formats for Individual Date and Duration Arrays
  • datetime Display Format
  • duration Display Format
  • calendarDuration Display Format
  • Default datetime Format
  • Generate Sequence of Dates and Time
  • Sequence of Datetime or Duration Values Between Endpoints with
  • Step Size
  • Add Duration or Calendar Duration to Create Sequence of Dates
  • Specify Length and Endpoints of Date or Duration Sequence
  • Sequence of Datetime Values Using Calendar Rules
  • Share Code and Data Across Locales
  • Write Locale Independent Date and Time Code
  • Write Dates in Other Languages
  • Read Dates in Other Languages
  • Extract or Assign Date and Time Components of Datetime Array
  • Combine Date and Time from Separate Variables
  • Date and Time Arithmetic
  • Compare Dates and Time
  • Plot Dates and Durations
  • Line Plot with Dates
  • Line Plot with Durations
  • Scatter Plot with Dates and Durations
  • Plots that Support Dates and Durations
  • Core Functions Supporting Date and Time Arrays
  • Convert Between Datetime Arrays, Numbers, and Text
  • Overview
  • Convert Between Datetime and Character Vectors
  • Convert Between Datetime and String Arrays
  • Convert Between Datetime and Date Vectors
  • Convert Serial Date Numbers to Datetime
  • Convert Datetime Arrays to Numeric Values
  • Carryover in Date Vectors and Strings
  • Converting Date Vector Returns Unexpected Output
  • Categorical Arrays
  • Create Categorical Arrays
  • Convert Text in Table Variables to Categorical
  • Plot Categorical Data
  • Compare Categorical Array Elements
  • Combine Categorical Arrays
  • Combine Categorical Arrays Using Multiplication
  • Access Data Using Categorical Arrays
  • Select Data By Category
  • Common Ways to Access Data Using Categorical Arrays
  • Work with Protected Categorical Arrays
  • Advantages of Using Categorical Arrays
  • Natural Representation of Categorical Data
  • Mathematical Ordering for Character Vectors
  • Reduce Memory Requirements
  • Ordinal Categorical Arrays
  • Order of Categories
  • How to Create Ordinal Categorical Arrays
  • Working with Ordinal Categorical Arrays
  • Core Functions Supporting Categorical Arrays

Share PDF on your social media:

Share on facebook
Share on twitter
Share on linkedin
Share on pinterest
Share on reddit

Related Books

Leave a comment

Your email address will not be published.

What's the problem with this file?


All books on this website are published in good faith and for educational information purpose only. So, we ask you to report us any copyrighted material published in our website and we will remove it immediately.


All books on this website are published in good faith and for educational information purpose only. So, we ask you to report us any copyrighted material published in our website and we will remove it immediately.