fixed page breaking of code and exercises
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
a = [2 4 6 8 10]; % row vector with five elements
|
||||
s = size(a) % store the return value of size() in a new variable
|
||||
s(2) % get the second element of s, i.e. the length along the 2nd dimension
|
||||
size(a,2) % the shortcut
|
||||
a = [2 4 6 8 10]; % row vector with five elements
|
||||
s = size(a) % store the return value of size() in a new variable
|
||||
s(2) % get the second element of s,
|
||||
% i.e. the length along the 2nd dimension
|
||||
size(a, 2) % the shortcut
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
s = 1 10
|
||||
ans = 10
|
||||
ans = 10
|
||||
s = 1 5
|
||||
ans = 5
|
||||
ans = 5
|
||||
|
||||
Reference in New Issue
Block a user