MATLAB || with 100% Verified Solutions.
program correct answers a sequence of statements that give instructions for the computer to execute. interactive program correct answers Type statements at the terminal. When you hit Enter, MATLAB executes them immediately script correct answers Prepare a sequence of statements ahead of time and run them later suppress an output correct answers ; display correct answers produces an output variables correct answers used to store data. refers to some chunk of memory where the program stores a value. may contain letters of '_'. Case sensitive ex: x, y, z expressions correct answers used to compute new data ex: x = 10+5, y = x .* 7. consist of literals (3, 7.5), variables (a,b,c), and function calls (sin(3), sqrt(x)) assignment correct answers used to store a value into a variable LHS = RHS, work right to left, takes the value of the RHS and stores it into the LHS. ex: x .* 7 is assigned to y. variable may be re-assigned many times in code operators correct answers form compound expressions (+, *, -, etc) whos correct answers used to get information about a variable, including the type of data it currently stores orange line around = correct answers warning, code will still run comments correct answers use the % symbol. anything after the % until the end of the line is a comment, comments are ignored by the program but are more for the human reader of the code to help manage complexity scalar correct answers single number or element vector correct answers one dimensional sequence of numbers or elements, elements can be separated by spaces or commas matrix correct answers two dimensional grid of numbers or elements, rows are separated with ; or a new line. you can use smaller matrices as components and if things don't line up you'll get an error
Información del documento
- Subido en
- 21 de mayo de 2024
- Número de páginas
- 11
- Escrito en
- 2023/2024
- Tipo
- Examen
- Contiene
- Preguntas y respuestas