M E 202 Practice Problems

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/4

encourage image

There's no tags or description

Looks like no tags are added yet.

5 Terms

1
New cards

Which of the following will assign a value of 35 to a variable “age”?

years = 35; age = years;

2
New cards

Based on MATLAB’s precedence rules, what does the following evaluate as: 3 - 2 × 4^2 + 10 / 5 * (4 - 5)

-31

3
New cards

What are the dimensions of the array below?

samples =

2 2 5 6 4

3 8 2 4 1

2 6 8 5 3

3 × 5

4
New cards

How can a programmer access the fourth element of numeric array “thisArray”?

thisArray(4)

5
New cards

What is the output?

scores = [45, 52, 38, 29, 55];

my score = scores(6)

Index exceeds