
Originally Posted by
JOHNNY10
If the following commands are executed in MATLAB
a = [1:5;logspace(2,8,5)]
a = a'
How many rows are in a?
2
8
5
3
How many windows are in MATLAB?
2
5
4
3
if e = logspace(1,10,10), then
e(5) = 100000
e(5) = 5
e(5) = 1000000
e(5) = 148.4
Which of these names are allowed in MATLAB? (Check all that may apply)
save
width-1
length
5height
depth?
Weight
If vector a_even has all even numbers from 0 thru. 1000, in order to obtain a_even, which command(s) is/are the correct one(s) (select all that apply)
a_even = 0:2:1000
a_even = 0:1000:2
a_even = -1:2:999
a_even = a_even + 1
a_even = linespace(0,1000,501)
a_even = 1:2:1001
a_even = 0:2:1001
If x = [1 2 5], y = 1:a:11 what "a" should be in order to have a value for this command z = x*y
a = 3
a = 5
a =2
There is no value for "a" that will make this command be executed without an error.
If b = logspace(2,8,10) then b is
10x1 matrix
Scalar
Vector
Two-dimensional array
If a = 10/9 and you want to display a = 10/9, which command are you going to use?
format fraction
format rat
format short
format real