Professional Documents
Culture Documents
B. Working With Arrays
B. Working With Arrays
>> x = 0 : 10 <Enter>
>> a = [ 1 2 3, 4, 5, 6] <Enter>
2. Arrays can now be defined (or created) in terms of the vector x just defined. Try
>> w = y ./ x <Enter>
3. You can use one vector in a list for another one. Try:
>> x’ <Enter>
>> r = [ 1 2 3; 4 5 6; 7 8 9] <Enter>
>> r(3,2) <Enter>