Matvec Users’ Guide
Matvec Users' Guide
Matvec Users' Guide
- No tags were found...
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
1.5. GETTING ONLINE HELP 3<br />
Example 4:<br />
> s = "Hello, My name is Tianlin Wang"<br />
Hello, My name is Tianlin Wang<br />
It simply creates a string object named s.<br />
1.5 Getting Online Help<br />
<strong>Matvec</strong> provides the online help. There are several versions (different formats) of the same help resources:<br />
dvi, ps, html, and manpage. Type in the question mark ? at the prompt, wait for a second, then a list of<br />
topics about <strong>Matvec</strong> functions and statements wiil be displayed on your screen. Type ? followed by a topic<br />
name (say sin) will display details of the topic you chose. For example,<br />
> ?max<br />
Builtin Friend and Member Function: max<br />
------------------------------------------------------------<br />
Syntax<br />
max(A)<br />
max(A,B)<br />
A.max()<br />
A.max(B)<br />
Description<br />
- If A is a scalar, A.max() returns itself.<br />
- If A is a vector, A.max() returns an element with the<br />
largest value.<br />
- If A is a matrix, A.max() returns a vector whose each<br />
element is the largest element of each column of A.<br />
If A is a one-row or one-column matrix, then the returned<br />
value would be a scalar.<br />
- If both A and B are scalars A.max(B) returns the largest<br />
one between A and B.<br />
- If both A and B are vectors (one of them could be a<br />
scalar), then A.max(B) returns a vector of the same<br />
size as A or B with resulting element(i) being the<br />
largest element among A(i) and B(i).<br />
- If both A and B are matrices (one of then could be a<br />
scalar), then A.max(B) returns a matrix of the same<br />
size as A or B with resulting element(i,j) being the<br />
largest element among A(i,j) and B(i,j).<br />
- max(A) is the same as A.max().<br />
- max(A,B) is the same as A.max(B).<br />
See Also<br />
min, sum, sumsq, mean, variance, Scalar, Vector, Matrix.<br />
-------------------------------------------------------------