Deck 15: Computational Engineering Tools: Matlab

ملء الشاشة (f)
exit full mode
سؤال
Which of the following MATLAB commands would calculate the value of exe ^ { x } ?

A) ex e^{\wedge} x
B) exp(x) \exp (x)
C) expx \exp ^{\wedge} \mathrm{x}
D)exponent (x) (\mathrm{x})
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
An M-file is used when you write a program that is more than a few lines long.
سؤال
Suppose you have defined x=[1,2,3]x = [ 1,2,3 ] and y=[2,4,6]y = [ 2,4,6 ] in the Command Window. Determine the result of the following MATLAB operation: >>x+y> > x + y

A)ans =369 =3 \quad 6 \quad 9
B)ans =123246 =\begin{array}{llllll}1 & 2 & 3 & 2 & 4 & 6\end{array}
C)ans =612 =612
D)ans =18 =18
سؤال
If you define x=2/3x = 2 / 3 , and then type format long, how will the value of x be displayed?

A) x = 0.66666666666666666666667
B) x = 0.66666666666667
C) x = 0.67000000000000
D) x=2/3x = 2 / 3
سؤال
If you define x=2/3x = 2 / 3 , and then type format short, how will the value of x be displayed?

A) x = 0.66666666667
B) x = 0.6667
C) x = 0.67
D) x x=2/3x = 2 / 3
سؤال
The part of the screen where you enter variables and issue MATLAB commands is known as the

A) menu bar.
B) current folder.
C) command window.
D) command history window.
سؤال
You can transfer old commands from the Command History Window to the Command
Window.
سؤال
What is the MATLAB command for calculating standard deviation?

A) standard
B) stddev
D) std
سؤال
If you define x=2/3x = 2 / 3 , and then type format rat, how will the value of x be displayed?

A) x = 0.66666666667
B) x = 0.6667
C) x = 0.67
D) x x=2/3x = 2 / 3
سؤال
What is the MATLAB command for calculating the square root of a number? What is the MATLAB command for calculating the square root of a number?  <div style=padding-top: 35px>
سؤال
Suppose you have defined x=[1,2,3] and y=[2,4,6]x = [ 1,2,3 ] \text { and } y = [ 2,4,6 ] in the Command Window. Determine the result of the following MATLAB operation: >>Xy> > \mathbf { X } \cdot { } ^ { * } \mathbf { y }

A) ans =369 =369
B)ans =2818 =2 \quad 8 \quad 18
C)ans =123246 =\begin{array}{llllll}1 & 2 & 3 & 2 & 4 & 6\end{array}
D)ans =612 =6 \quad 12
سؤال
If you define x=2/3x = 2 / 3 , and then type format bank, how will the value of x be displayed?

A) x = 0.66666666667
B) x = 0.6667
C) x = 0.67
D) x x=2/3x = 2 / 3
سؤال
To generate the set of x even numbers in the range of two to ten, what should you enter in the Command Window?

A) x = 2;2;10
B) x = 2:2:10
C) x = 2:10:2
D) x = 2,10,2
سؤال
Which of the following commands are commonly used while plotting in MATLAB?

A) plot
B) title
C) grid
D) all of the above
سؤال
To clear the contents of the Command Window, type:

A) clear
B) clr
C) clc
D)  shift-c \text { shift-c }
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/15
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 15: Computational Engineering Tools: Matlab
1
Which of the following MATLAB commands would calculate the value of exe ^ { x } ?

A) ex e^{\wedge} x
B) exp(x) \exp (x)
C) expx \exp ^{\wedge} \mathrm{x}
D)exponent (x) (\mathrm{x})
exp(x) \exp (x)
2
An M-file is used when you write a program that is more than a few lines long.
True
3
Suppose you have defined x=[1,2,3]x = [ 1,2,3 ] and y=[2,4,6]y = [ 2,4,6 ] in the Command Window. Determine the result of the following MATLAB operation: >>x+y> > x + y

A)ans =369 =3 \quad 6 \quad 9
B)ans =123246 =\begin{array}{llllll}1 & 2 & 3 & 2 & 4 & 6\end{array}
C)ans =612 =612
D)ans =18 =18
ans =369 =3 \quad 6 \quad 9
4
If you define x=2/3x = 2 / 3 , and then type format long, how will the value of x be displayed?

A) x = 0.66666666666666666666667
B) x = 0.66666666666667
C) x = 0.67000000000000
D) x=2/3x = 2 / 3
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 15 في هذه المجموعة.
فتح الحزمة
k this deck
5
If you define x=2/3x = 2 / 3 , and then type format short, how will the value of x be displayed?

A) x = 0.66666666667
B) x = 0.6667
C) x = 0.67
D) x x=2/3x = 2 / 3
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 15 في هذه المجموعة.
فتح الحزمة
k this deck
6
The part of the screen where you enter variables and issue MATLAB commands is known as the

A) menu bar.
B) current folder.
C) command window.
D) command history window.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 15 في هذه المجموعة.
فتح الحزمة
k this deck
7
You can transfer old commands from the Command History Window to the Command
Window.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 15 في هذه المجموعة.
فتح الحزمة
k this deck
8
What is the MATLAB command for calculating standard deviation?

A) standard
B) stddev
D) std
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 15 في هذه المجموعة.
فتح الحزمة
k this deck
9
If you define x=2/3x = 2 / 3 , and then type format rat, how will the value of x be displayed?

A) x = 0.66666666667
B) x = 0.6667
C) x = 0.67
D) x x=2/3x = 2 / 3
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 15 في هذه المجموعة.
فتح الحزمة
k this deck
10
What is the MATLAB command for calculating the square root of a number? What is the MATLAB command for calculating the square root of a number?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 15 في هذه المجموعة.
فتح الحزمة
k this deck
11
Suppose you have defined x=[1,2,3] and y=[2,4,6]x = [ 1,2,3 ] \text { and } y = [ 2,4,6 ] in the Command Window. Determine the result of the following MATLAB operation: >>Xy> > \mathbf { X } \cdot { } ^ { * } \mathbf { y }

A) ans =369 =369
B)ans =2818 =2 \quad 8 \quad 18
C)ans =123246 =\begin{array}{llllll}1 & 2 & 3 & 2 & 4 & 6\end{array}
D)ans =612 =6 \quad 12
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 15 في هذه المجموعة.
فتح الحزمة
k this deck
12
If you define x=2/3x = 2 / 3 , and then type format bank, how will the value of x be displayed?

A) x = 0.66666666667
B) x = 0.6667
C) x = 0.67
D) x x=2/3x = 2 / 3
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 15 في هذه المجموعة.
فتح الحزمة
k this deck
13
To generate the set of x even numbers in the range of two to ten, what should you enter in the Command Window?

A) x = 2;2;10
B) x = 2:2:10
C) x = 2:10:2
D) x = 2,10,2
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 15 في هذه المجموعة.
فتح الحزمة
k this deck
14
Which of the following commands are commonly used while plotting in MATLAB?

A) plot
B) title
C) grid
D) all of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 15 في هذه المجموعة.
فتح الحزمة
k this deck
15
To clear the contents of the Command Window, type:

A) clear
B) clr
C) clc
D)  shift-c \text { shift-c }
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 15 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 15 في هذه المجموعة.