- •Prologue
- •Contents
- •1 The Creation of MATLAB®
- •1.1 Mathematical Origins
- •1.2 EISPACK
- •1.3 LINPACK
- •1.4 Classic MATLAB
- •2 Key Features of Classic MATLAB
- •2.1 Backslash
- •2.2 Colon Operator
- •2.4 Portable Character Set
- •2.5 Syntax Diagrams
- •2.6 User Function
- •2.7 Precursors
- •3 From Classic MATLAB to a Commercial Product
- •3.1 Developing MathWorks MATLAB
- •3.2 Functions
- •3.3 Dynamic Linking of Compiled Code
- •3.4 Language Changes and Extensions
- •3.5 New Functions
- •3.6 Toolboxes
- •3.7 Graphics
- •3.8 Flops Count
- •4 Evolution of MATLAB
- •4.1 Data Types
- •4.2 Sparse Matrices
- •4.3 Empty Matrices
- •4.4 Compiling MATLAB
- •4.5 The Pentium FDIV Bug
- •4.6 Cell Arrays
- •4.7 Structures
- •4.8 Numerical Methods
- •4.9 ODEs
- •4.10 Text
- •4.11 Evolution of the MathWorks Logo
- •5 Recent Developoments
- •5.1 LAPACK
- •5.2 FFTW
- •5.3 Desktop
- •5.4 Function Handles
- •5.5 Objects
- •5.6 Symbolic Math Toolbox™
- •5.7 Making MATLAB More Accessible
- •5.8 Parallel Computing
- •5.9 GPUs
- •5.10 Strings
- •5.11 Execution Engine
- •5.12 Development Process
- •5.13 Toolboxes
- •6 Success
- •Epilogue
- •Acknowledgments
- •A Syntax Diagrams for Classic MATLAB
- •References
- •Non-archival References
A History of MATLAB |
81:35 |
produces
h =
'hello world'
disp(h)
'hello world'
d = uint8(h)
d=
1×11 uint8 row vector
104 |
101 |
108 |
108 |
111 |
32 |
119 |
111 |
114 |
108 |
100 |
Short character strings are often used as optional parameters to functions.
[U,S,V] = svd(A,'econ'); % Economy size, U is the same shape as A.
plot(x,y,'o-') % Plot lines with circles at the data points.
Multiple lines of text, or many words in an array, must be padded with blanks so that the character array is rectangular. The char function provides this service. For example, here is a 3-by-7 array.
class = char('Alice','Bob','Charlie');
class =
3×7 char array 'Alice ' 'Bob ' 'Charlie'
Or, you could use a cell array.
class = {'Alice', 'Bob', 'Charlie'}'
class =
3×1 cell array {'Alice' } {'Bob' } {'Charlie'}
Recently, a comprehensive string data type was introduced.(see Section 5.10).
4.11 Evolution of the MathWorks Logo
MathWorks is perhaps the only company in the world that has the solution to a partial differential equation as its logo. The graphic has evolved over the years [na Moler 2014c; na Moler 2014e; na Moler 2014d; na Moler 2014b; na Moler 2014a] from a two-dimensional contour plot—a versionFFa of which appeared in Cleve Moler’s PhD dissertation [Moler 1965, Figure (8.15)]—to a black-and- white three-dimensional surface plot, to the same three-dimensional plot with various color schemes and lighting models (see Figure 17).
Proc. ACM Program. Lang., Vol. 4, No. HOPL, Article 81. Publication date: June 2020.