>> 5+6
ans = 11
>> 1~=2
ans = 1 %1表示true,0表示false
>> 1~=1 %1不等于1
ans = 0
>> a=2
a = 2
>> a=3;
>> a=pi
a = 3.1416
>> disp(a) %对a 的值进行输出
3.1416
>> A=[1 2;3 4;5 6]
A =
1 2
3 4
5 6
>> v=[1 2 3]
v =
1 2 3
>> a = [1;2;3]
a =
1
2
3
>> v=[1:0.2:2]
v =
1.0000 1.2000 1.4000 1.6000 1.8000 2.0000
>> v=[1:6]
v =
1 2 3 4 5 6