ENGR 133 Exam 1 Functions || Already Passed.
+ - * / ^ = correct answers Simple operations in MATLAB or Excel Dot Multiplier correct answers .* ./ .^ Performs element-by-element multiplication, division, or exponentiation % correct answers The percent sign is most commonly used to indicate nonexecutable text within the body of a program. This text is normally used to include comments in your code Logic Operators correct answers And (&): if a AND b are true or false, then c is true. Or (|): if a OR b is true, then c is true. XOR: if a or b is true but not both, then c is true. Negate (~): switches true to false and false to true Logic Checks correct answers Equals (==): if the value of a is equal to b, then c is true. Greater/less than (): if a is greater/less than b but not equal, c is true. Greater/less than or equal (==): combines the first two : correct answers Generate a sequential series of regularly spaced numbers from first to last using the syntax first:last. Or generate a sequential series of numbers, each number separated by a step value, using the syntax first:step:last ; correct answers The semicolon can be used to construct arrays, suppress output from a MATLAB command, or to separate commands entered on the same line [ ] correct answers Brackets are used to form vectors and matrices ( ) correct answers Parentheses are used mostly for indexing into elements of an array or for specifying arguments passed to a called function. Parenthesis also control the order of operations abs correct answers Absolute values of what is in the arguments acos correct answers Inverse cosine all correct answers Determine if all array elements are nonzero or true any correct answers Determine if any array elements are nonzero asin correct answers Inverse sine atan correct answers inverse tangent ans correct answers Most recent answer clc correct answers Clear command window
École, étude et sujet
- Établissement
- ENGR 133
- Cours
- ENGR 133
Infos sur le Document
- Publié le
- 19 mars 2024
- Nombre de pages
- 5
- Écrit en
- 2023/2024
- Type
- Examen
- Contenu
- Questions et réponses
Sujets
Document également disponible en groupe