Shared Flashcard Set

Details

MATLAB Chapter 8,11,12
N/A
33
Engineering
Undergraduate 2
11/14/2013

Additional Engineering Flashcards

 


 

Cards

Term
Ch.8 All data files should be treated as a sequential series of characters.
Definition
True. Although the actual storage technique on a hard drive may have blocks of characters distributed randomly on its surface, the software that reads and writes the disk serializes the characters.
Term
Ch.8 When you save a workspace, you are actually saving the scripts that generate the data in the workspace.
Definition
False. You save the variable names and their current values, not the programs that generated the data.
Term
Ch.8 MATLAB reads strings from tab- or comma-delimited files by recognizing the double quotes that delimit strings.
Definition
False. While some apps permit delimited strings to be embedded in comma- or tab-delimited files, MATLAB's readers read only numerical data into arrays.
Term
Ch.8 If you use fopen(...) to open an existing file and write to it, the original data in the file will be overwritten.
Definition
False. You can use the qualifier 'a' to indicate that you will append to the end of an existing file.
Term
Ch.8 The function fgets(fh) does not always return a string.
Definition
True. If you read past the end of a file, a numerical -1 is returned.
Term
Ch.8 In general, data files contain text that represents the _______ of the data and control characters that specify the ________ of the data.
Definition
values; organization
Term
Ch.8 The MATLAB xlsread(...) function returns three results: the _______ in a(n) _______, the ________ in a(n)________, and _______ in a _______.
Definition
numerical values; double array; text data; cell array; both string and numerical data; cell array
Term
Ch.8 When using dlmread(...) to populate a(n) _________, any unassigned values are _______.
Definition
numerical array; filled with zero
Term
Ch.8 When using fopen(...), the consequence of failure to open the file is ________.
Definition
system dependent (for ex., in the standard version on a PC, this is indicated by returning a file handle of -1)
Term
Ch11. The plot(...) function needs only one parameter to function correctly.
Definition
True. If the x vector is ommited, 1:N is assumed for the independent parameter, and if the str is omitted, a solid blue line used.
Term
Ch11. Plot enhancement functions may be called before or after the function that plots the data.
Definition
False. To apply to a specific data plot, the enhancement functions must follow the plotting function.
Term
Ch11. You must provide plots for all the specified sub-plot areas
Definition
False. Any area not provided with a plot remains blank.
Term
Ch11. meshgrid(...) accepts vectors of length m and n that bound the edges of the plaid and produces two array sized m x n giving the complete plaid.
Definition
True
Term
Ch11. To construct a parametric surface, both independent parameters must be angles.
Definition
False. Bodies of rotation, for example, use one of the axis directions as an independent parameter.
Term
Ch11. When rotating a function about the y-axis, the variables along the x and y axes are computed from a classic polar-to-Cartesian conversion.
Definition
False. It is the x and z axes (those axes not the axis of rotation).
Term
Ch11. To compute a body of rotation, the curve must be a continuous, differentiable function.
Definition
False. The curve does not need to be continuous.
Term
Ch11. Bodies of rotation are confined rotating about the x, y, or z axes.
Definition
False. You can rotate the data to align an arbitrary axis with the x-axis, perform the body of rotation there, and invert the rotation.
Term
Ch11. Each time figure is called, a(n) _________ is made available, with figure number ________.
Definition
new figure; the next higher
Term
Ch11. To prepare for plotting, put _____ or ______ at the beginning of your script.
Definition
clf; close all
Term
Ch11. Parametric plots allow the variables on each axis to be _______ on a(n) _______,________ variable.
Definition
dependent; separate; independent
Term
Ch11. The simplest surface plots are obtained by defining a(n) _________ value for each point on _________.
Definition
z; an x-y plaid
Term
Ch11. We construct a sphere by wrapping a(n) _______ with two ________ as the independent variables around the sphere.
Definition
plaid; angles
Term
Ch11. Bodies of rotation are created by rotating a(n) _________ about a(n) _______.
Definition
linear curve; specified axis
Term
Ch12. All MATLAB classes exhibit some form of behavioral abstraction.
Definition
True. Even the most primitive data members encapsulate their data and control the operations that can be performed on the data.
Term
Ch12. Matrix multiplication requires that the inner dimensions match.
Definition
False. It also works if one or both of the matrices are scalar.
Term
Ch12. The results of A * B and B * A are identical.
Definition
True, only if one is a scalar; otherwise, False. If A and B are not square, one will fail; even if they are square, they will have different answers.
Term
Ch12. Both A * A^-1 and A^-1 * A return the identity matrix.
Definition
True
Term
Ch12. Multiplying inv(A) * B is logically equivalent to B / A.
Definition
False. It is equivalent to back dividing: A \ B.
Term
Ch12. All sets of simultaneous linear equations can be solved by matrix inversion.
Definition
True
Term
Ch12. Behavioral abstraction combines ________ abstraction and ________ abstraction.
Definition
data; procedural
Term
Ch12. The result of a matrix multiplication is a new matrix with the ______ count of the first matrix and the ______ count of the second.
Definition
column; row
Term
Ch12. To rotate a graphic object in the x-y plane about some point, P, other than the origin, you first _______, then _______, and then ________.
Definition
translate the object; perform the rotation; translate the rotated object back to P
Term
Ch12. To be soluble, simultaneous linear equations must be expressed as ________ equations involving ________ variables, x,and _______ values.
Definition
N independent; N unknown; N * (N + 1) constant
Supporting users have an ad free experience!