Matlab: Is there any difference between the use of square brackets for declaring a list or not? -
we can specify list a = [1:3] @ same time, can specify list a = 1:3.
i see output on command window a same, i.e.
a = 1 2 3
but there difference in internal structure cannot see , cause difference in further calculation?
i don't think so. in matlab, square brackets can used concatenating number of matrices together. example, do
x = [1:2, 5:7, 9:12] x = 1 2 5 6 7 9 10 11 12 in case, doing matrix concatenation 1 matrix, yields matrix provided.
Comments
Post a Comment