
Type also the following:
“x=[(2^2+1)^2-15/4*6.1, 1.23e-2]”
and after pressing [Enter] you get the Matlab’s result (Figure 7)
Figure 7: A 2-element vector
Observe that the very first command that you have entered in the command
window has vanished with the additional of the last one (of course it
depends on the size of the window, in here the command window is
minimized so earlier commands vanish too quickly). You can use the scroll
bar on the right to navigate the command window and go up to see the
earlier commands (or view them via the command history window).
Matlab calculates the quantities as follows:
• First come the quantities in brackets
• Power calculation follow: (e.g. 5 + 2^2 = 5 +4 = 9)
Komentáře k této Příručce