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

Popular posts from this blog

node.js - Using Node without global install -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - Null response to php query in android, even though php works properly -