23.12.2012 Views

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Special Characters [ ] ( ) {} = ' . ... , ; % !<br />

Remarks Some uses of special characters have M-file function equivalents, as shown:<br />

See Also The arithmetic operators +, –, *, /, \, ^, '<br />

2-24<br />

, Comma. Used to separate matrix subscripts and function arguments.<br />

Used to separate statements in multistatement lines. For<br />

multi-statement lines, the comma can be replaced by a semicolon to<br />

suppress printing.<br />

; Semicolon. Used inside brackets to end rows. Used after an expression<br />

or statement to suppress printing or to separate statements.<br />

% Percent. The percent symbol denotes a comment; it indicates a logical<br />

end of line. Any following text is ignored. <strong>MATLAB</strong> displays the first<br />

contiguous comment lines in a M-file in response to a help command.<br />

! Exclamation point. Indicates that the rest of the input line is issued<br />

as a command to the operating system. On the PC, adding & to the end<br />

of the ! command line, as in !dir &, causes the output to appear in a<br />

separate window.<br />

Horizontal concatenation [A,B,C...] horzcat(A,B,C...)<br />

Vertical concatenation [A;B;C...] vertcat(A,B,C...)<br />

Subscript reference A(i,j,k...) subsref(A,S). See help<br />

subsref.<br />

Subscript assignment A(i,j,k...)= B subsasgn(A,S,B). See help<br />

subsasgn.<br />

The relational operators =, ==, ~=<br />

The logical operators &, |, ~

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!