Logo Background

» 2008 » March

  • Manipulating Matrices
    By matlabtutorials on March 13, 2008 | No Comments  Comments
    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...
  • Desktop Tools
    By matlabtutorials on March 12, 2008 | No Comments  Comments
    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: “Command Window” “Command History” “Launch Pad” “Help Browser” “Current Directory Browser” ...
  • while
    By matlabtutorials on March 6, 2008 | No Comments  Comments
    while Repeat statements an indefinite number of times. The general form of a while statement is: while expression statements END The statements are executed while the real part of the expression has all non-zero elements. The expression is usually the result of expr rop expr where rop is ==, <, ...
  • return
    By matlabtutorials on March 6, 2008 | No Comments  Comments
    return Return to invoking function. return causes a return to the invoking function or to the keyboard. It also terminates the KEYBOARD mode. Normally functions return when the end of the function is reached. A return statement can be used to force an early return. Example 1 2 3 4 5 6 7 function d ...
  • elseif
    By matlabtutorials on March 6, 2008 | No Comments  Comments
    elseif IF statement condition. elseif is used with IF. The statements after the elseif are executed if the expression is true and all the preceding IF and elseif expressions are false. An expression is considered true if the real part has all non-zero elements. elseif does not need a matching END, w...

Advertisement