Problem

Type the following in the command window and submit the results. Briefly explain what each assignment does.

a = 1
b = 'x'
c = true
whos a b c
a == c
a + c
d = [1 2 3 4]
e = ['a' 'b' 'c' 'd']
f = ['a','b','c','d']
g = ['abcd']
h = {a b c d}
i = { a b c d}
whos d e f g h i
class(a)
type(a)
True
true
False
false

Comments