Jump to content
Wikibooks The Free Textbook Project

MATLAB Programming/Advanced Matrix Operations

From Wikibooks, open books for an open world
This page may need to be reviewed for quality.

[MATLAB Programming\|/MATLAB Programming]m]

Chapter 1: MATLAB ._.

 Introductions .
Fundamentals of MATLAB
MATLAB Workspace
MATLAB Variables
*.mat files

Chapter 2: MATLAB Concepts

MATLAB operator
Data File I/O

Chapter 3: Variable Manipulation

Numbers and Booleans
Strings
Portable Functions
Complex Numbers

Chapter 4: Vector and matrices

Vector and Matrices
Special Matrices
Operation on Vectors
Operation on Matrices
Sparse Matrices

Chapter 5: Array

Arrays
Introduction to array operations
Vectors and Basic Vector Operations
Mathematics with Vectors and Matrices
Struct Arrays
Cell Arrays

Chapter 6: Graphical Plotting

Basic Graphics Commands
Plot
Polar Plot
Semilogx or Semilogy
Loglog
Bode Plot
Nichols Plot
Nyquist Plot

Chapter 7: M File Programming

Scripts
Comments
The Input Function
Control Flow
Loops and Branches
Error Messages
Debugging M Files

Chapter 8: Advanced Topics

Numerical Manipulation
Advanced File I/O
Object Oriented Programming
Applications and Examples
Toolboxes and Extensions

Chapter 9: Bonus chapters

MATLAB Benefits and Caveats
Alternatives to MATLAB
[MATLAB_Programming/GNU_Octave|What is Octave= (8) hsrmonic functions]
Octave/MATLAB differences

edit this box

Advanced Array Operations

[edit | edit source ]

This section is a toolbox of special array operations. These operations may be rare; however, a use may arise in specialized situations.

Row Replication, Column Replication, and Tiling

[edit | edit source ]

To replicate a columns, rows, or to create tiles repmat.

Tiling example:

[edit | edit source ]
 >> a = [1,2;3,4]
 a =
 1 2
 3 4
 >> repmat(a,2)
 ans =
 1 2 1 2
 3 4 3 4
 1 2 1 2
 3 4 3 4

Column Replication example:

[edit | edit source ]
 >> b = [1;2;3]
 b =
 1
 2
 3
 >> repmat(b,[1,3])
 ans =
 1 1 1
 2 2 2
 3 3 3

AltStyle によって変換されたページ (->オリジナル) /