Modeling in MatLab Flashcards
1
Q
y = [18 15 14 17 13 18 15]
y(5)=
A
13
2
Q
y = [18 15 14 17 13 18 15]
y(3:5)
A
14 17 13
3
Q
y = [18 15 14 17 13 18 15] b = y(2:3:7)
A
15 13
4
Q
z = 1 2 3 4 5
z’=
A
z= 1 2 3 4 5
5
Q
x = 0:2:7
A
x= 2 4 6
6
Q
x=1:5
A
x =1 2 3 4 5
7
Q
g = [2 3 4] h = [-1 2 3]
g+h
A
1 5 7
8
Q
x= [1 2 3 4] y= [1 2 3 4]
x*y=
A
Invalid
9
Q
x= [1 2 3] y= [1; 2; 3]
x*y=
A
16
10
Q
x= [1 2 3] y= [1; 2; 3]
x.*y=
A
ans = 1 3 9
11
Q
plot(t,empirical,’go–’)
what will appear as the options
A
green -o-
12
Q
In a function the file name and the function name must be
A
the same with the file name has .m
13
Q
Functions=
Scripts=
A
Functions perform calculations
Scripts Executes commands
14
Q
what are ODE45
A
a function with an initial conditon
15
Q
ODE stands for
A
Ordinary Differential
Equations