4_pdfsam_2 - to write the last expression above as...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
ans = 7 > >3-3 ans = 0 >> 4/5 ans = 0.8000 Prompt >> is supplied by Matlab , indicates beginning of the command. ans = following the completion of the command with the Enter key marks the beginning of the answer. Operations may be chained together. For example: > >3+5+2 ans = 10 >> 4*22 + 6*48 + 2*82 ans = 540 > >4*4*4 ans = 64
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: to write the last expression above as >> 4^3 ans = 64 Left division may seem strange: divide the right operand by the left operand. For scalar operands the expressions 56/8 and 8\56 produce the same numerical result. >> 56/8 ans = 7 >> 8\56 ans = 7 We will later learn that matrix left division has an entirely di±erent meaning. Syntax 17...
View Full Document

Ask a homework question - tutors are online