Class Notes (1,100,000)
US (480,000)
UCSD (8,000)
MAE 08 (30)
Lecture 4

MAE 08 Lecture 4: MAE 8 Lec 4


Department
Mechanical and Aerospace Engineering
Course Code
MAE 08
Professor
Hieu Tan Pham
Lecture
4

This preview shows half of the first page. to view the full 2 pages of the document.
Linespace = linearly spaced vector
>> vecA = linspace(0,10,5)
vecA =
Columns 1 through 2
0 2.500000000000000
Columns 3 through 4
5.000000000000000 7.500000000000000
Column 5
10.000000000000000
>> matA = [1:5; 11:15; 21:25]
matA =
1 2 3 4 5
11 12 13 14 15
21 22 23 24 25
>> numel(matA)
ans =
15
>> size(matA)
ans =
3 5
>> length(matA)
ans =
5
You're Reading a Preview

Unlock to view full version