Posts Tagged ‘array’
What Is MATLAB?
MATLAB is a high-performance language for technical computing. It ntegrates computation, visualization, and programming in an easy-to-use nvironment where problems and solutions are expressed in familiar athematical notation. Typical uses include: Read More
Manipulating Matrices
Matrices and Magic Squares
In MATLAB, a matrix is a rectangular array of numbers. Special meaning is sometimes attached to 1-by-1 matrices, which are scalars, and to matrices with only one row or column, which are vectors. MATLAB has other ways of storing both numeric and nonnumeric data, but in the beginning, it is usually best to think of everything as a matrix. The operations in MATLAB are designed to be as natural as possible. Where other programming languages work with numbers one at a time, MATLAB allows you to work with entire matrices quickly and easily. A good example matrix, used throughout this book, appears in the Renaissance engraving Melancholia I by the German artist and amateur mathematician Albrecht Dürer. Read More
Tags: amateur mathematician, array, break, case, Colon Operator, Command Window, continue, diag, end, example matrix, Expressions, for, full, Functions, help, if, load, m-files, magic, magic Function, magic squares, Manipulating Matrices, matlab, mean, programming, rem, round, sign, Subscripts, sum, title, vectors, ver, what, which, workspace
Desktop Tools
This section provides an introduction to MATLAB’s desktop tools. You can also use MATLAB functions to perform most of the features found in the desktop tools. The tools are: Read More
Tags: addpath, array, break, cd, clear, Command History, Command Window, Debugger, delete, demo, diary, dir, Directory Browser, edit, Editor, end, for, format, full, Functions, Graphical user interface, help, help browser, if, inf, info, Launch Pad, load, m-files, magik, matlab, matlab functions, MATLAB related, matlab users, mean, more, open, path, quit, rem, return, rmpath, save, session, sign, stem, title, variables, which, while, workspace
end
end Terminate scope of FOR, WHILE, SWITCH, TRY, and IF statements. Without END’s, FOR, WHILE, SWITCH, TRY, and IF wait for further input. Each end is paired with the closest previous unpaired FOR, WHILE, SWITCH, TRY or IF and serves to terminate its scope. Read More
open
OPEN Open files by extension.
open NAME where NAME must contain a string, does different things
depending on the type of the object named by that string: Read More