



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Click on the “Getting Started” link in Matlab. ... While not a MATLAB command, this keystroke ... log10( x ) - common logarithm, base 10.
Typology: Schemes and Mind Maps
1 / 5
This page cannot be seen from the preview
Don't miss anything!




4
5
Command Description clc Clears the command window. Does not affect the workspace, meaning variables are unchanged. clear Clears all variables from the workspace, so all variable values are lost. exit Exits the MATLAB session. who Prints all variables in the current workspace. whos Prints all variables in the current workspace as well as some extra information about their size, bytes, class, etc. ctrl-c While not a MATLAB command, this keystroke sequence interrupts an endless MATLAB calculation that a programmer may have entered accidentally. Afterwards, the programmer can enter a new command. Table 1.2.1: Regularly used MATLAB commands.
9
Convention Description Explanation ( ) Items within parentheses are evaluated first ^ Power is evaluated next. Thus 52^3 evaluates as 5(2^3) or 58 which is 40. *** /* Next to be evaluated are * and / having equal precedence. + - Finally come + and equal precedence.^ -^ with^ Thus, 3+2A is evaluated as 3+(2A). left-to-right If more than one operator of equal precedence could be evaluated, evaluation occurs left to right. Thus, A2/3;" evaluates as (A2)/ Table 2.5.2: Precedence rules for arithmetic operators. 10
11
12
Which of the following expressions is equivalent to: x + 5 * y / z ^ 2 A. ( x + ( ( 5 * y ) / z ) ) ^ 2 B. ( ( x + 5 ) * ( y / z ) ) ^ 2 C. x + ( 5 * y / z ) ^ 2 D. x + ( ( 5 * y ) / ( z ^ 2 ) ) E. ( x + ( 5 * y ) ) / ( z ^ 2 )