• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 3 out of 19 pages
Exam (elaborations)

EGR 1400 Exam 3 with precise detailed answers

Document preview thumbnail
Preview 3 out of 19 pages

EGR 1400 Exam 3 with precise detailed answers

Content preview

2



EGR 1400 Exam 3 with precise detailed answers || || || || || || ||




A rectangular array of data - ✔✔Table
|| || || || || ||




a sequence of MATLAB commands also called
|| || || || || ||




program (also called M-files) - ✔✔script file || || || || || ||




Rules about variable names: - ✔✔- Must begin with a letter
|| || || || || || || || || ||




- Can be up to 63 characters long (31 in MATLAB 6)
|| || || || || || || || || || ||




- Can contain letters, digits, and the underscore characters - MATLAB is case sensitive
|| || || || || || || || || || || || ||




- No space is allowed
|| || || ||




- No use of built-in functions
|| || || || ||




a fundamental form that MATLAB uses to store and manipulate data - ✔✔Array
|| || || || || || || || || || || ||




a list of numbers arranged in rows and/or columns - ✔✔An array
|| || || || || || || || || || ||




In addition to arrays of numbers, arrays in MATLAB can be made of a list of - ✔✔characters
|| || || || || || || || || || || || || || || || ||




(strings)
||




Tables can be usually converted to arrays - ✔✔True
|| || || || || || || ||




In MATLAB a vector is created by assigning the elements of the vector to a variable -
|| || || || || || || || || || || || || || || || ||




✔✔True

,2


Creating a vector can be done in several ways: - ✔✔- By known list of numbers (row,
|| || || || || || || || || || || || || || || || ||




column) or functions || ||




- By specifying the first, the spacing, and the last term (with or without brackets, forward
|| || || || || || || || || || || || || || || ||




and backward) ||




- By specifying the first and last terms, and the number of terms (linspace command)
|| || || || || || || || || || || || || ||




The rule in creating a matrix is that some of the rows must have the same number of
|| || || || || || || || || || || || || || || || || ||




elements - ✔✔False || ||




Creating a matrix can be done in several ways: - ✔✔- By known list of numbers (row,
|| || || || || || || || || || || || || || || || ||




column) or functions || ||




- By specifying the first, the spacing, and the last term
|| || || || || || || || || ||




- By specifying the first and last terms, and the number of terms (linspace command)
|| || || || || || || || || || || || || ||




Not all variables in MATLAB are arrays - ✔✔False
|| || || || || || || ||




Using a colon to address a range of elements in vector or matrix - ✔✔• Vector:v(:);v(m:n)
|| || || || || || || || || || || || || || ||




• Matrix:A(:,n);A(n,:);A(:,m:n);A(m:n,:);A(m:n,p:q)
||




Adding an element which is beyond the size of a matrix, similar as in vector case, will result
|| || || || || || || || || || || || || || || || ||




in added zeros - ✔✔True
|| || || || ||




Built-in functions for handling arrays - ✔✔length(A), size(A), reshape(A, m, n), diag(v),
|| || || || || || || || || || || ||




diag(A)



an array of characters - ✔✔String
|| || || || ||

, 2


Strings use single quotes, and can include letters, digits, other symbols and space in
|| || || || || || || || || || || || || ||




MATLAB - ✔✔True || ||




Use of strings in MATLAB: - ✔✔- Output commands to display text messages
|| || || || || || || || || || || ||




- Formatting commands of plots
|| || || ||




- Input arguments of some functions
|| || || || ||




We can modify a string, by accessing one character or a set of characters within the original
|| || || || || || || || || || || || || || || || ||




string - ✔✔True || ||




Strings can't be stored in a matrix - ✔✔False
|| || || || || || || ||




Strings can also be stored in a matrix - ✔✔True
|| || || || || || || || ||




Built-infunction char: - ✔✔Info = char('Student Name:','John Smith','Grade:','A') || || || || || || ||




A string made up of the digits is the same as the number itself - ✔✔False
|| || || || || || || || || || || || || || ||




A string made up of the digits is different than the number itself - ✔✔True
|| || || || || || || || || || || || || ||




Each column of the table, called a _____ contains the same type of information - ✔✔field
|| || || || || || || || || || || || || || ||




Each row, called a _____, contains all the information about one entry in the table -
|| || || || || || || || || || || || || || || ||




✔✔record



Databases contain one or more related tables - ✔✔true || || || || || || || ||

Document information

Uploaded on
October 14, 2026
Number of pages
19
Written in
2026/2027
Type
Exam (elaborations)
Contains
Questions & answers
$19.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Ruiz
3.2
(15)
Sold
106
Followers
4
Items
14206
Last sold
1 week ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions