Modeling in MatLab Flashcards

1
Q

y = [18 15 14 17 13 18 15]

y(5)=

A

13

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

y = [18 15 14 17 13 18 15]

y(3:5)

A

14 17 13

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q
y = [18 15 14 17 13 18 15] 
b = y(2:3:7)
A

15 13

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q
z =
1
2
3
4
5

z’=

A

z= 1 2 3 4 5

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

x = 0:2:7

A

x= 2 4 6

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

x=1:5

A

x =1 2 3 4 5

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q
g = [2 3 4]
h = [-1 2 3]

g+h

A

1 5 7

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q
x= [1 2 3 4]
y= [1 2 3 4]

x*y=

A

Invalid

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q
x= [1 2 3]
y= [1; 2; 3]

x*y=

A

16

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q
x= [1 2 3]
y= [1; 2; 3]

x.*y=

A

ans = 1 3 9

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

plot(t,empirical,’go–’)

what will appear as the options

A

green -o-

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

In a function the file name and the function name must be

A

the same with the file name has .m

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Functions=

Scripts=

A

Functions perform calculations

Scripts Executes commands

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

what are ODE45

A

a function with an initial conditon

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

ODE stands for

A

Ordinary Differential

Equations

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Real-world systems are

A

dynamical systems

17
Q

What do you need for an ODE

A

the function ODE and the initial condition

18
Q

This is an ODE

[t,h]= ode45(‘sex’,[0 20],h0);

A

what is [t,h] returns a value

t as the specified range [0 20]

19
Q

This is an ODE
[t,h]= ode45(‘sex’,[0 20],h0);
what is sex

A

the name of the function describing the ODE problem

20
Q

This is an ODE
[t,h]= ode45(‘sex’,[0 20],h0);
[0 20] represents

A

the specified range for t on the x axis

21
Q

This is a script
h0=2000

[t,h]= ode45(‘sex’,[0 20],h0);

how can we rewrite this ode

A

replace h0 with 2000 as it represents the initial condition