MATLAB: What is the difference between ( ) and [ ] format in matlab? how can i change the one format to another one

image processingImage Processing Toolboxparallel computing

Dear Sir/MAdam,
What is the difference between ( ) and [ ] format in matlab? how can i change the one format to another one?
[rangr]=split(rangr(x,:),gsize1);
[rangg]=split(rangg(x,:),gsize1);
[rangb]=split(rangb(x,:),gsize1); this is function
I want get the result format for only this ( ) format, not this [] format.. so how can i convert it.. please any one help to me.
Edit [11 Sep 2012, 12:04 BST – OK] Merged from duplicate
Dear Sir/MAdam, Please read out my following codes . I got a rang, meanran and varran values for ( ) this format. But I got the result for rang ,meansrang,varsrang values for [ ] format. THis method is correct or not..?
for i1=1:gsize:nr
for j1=1:gsize:nc
l=1;
for x=i1:1:i1+(gsize-1)
for y=j1:1:j1+(gsize-1)
rang1(k,l)=c(x,y);
l=l+1;
end
end
dr=double(rang1(k,:));
meanran(k)=mean(dr);
varran(k,:)=var(dr);
k=k+1;
end
end
###################################
[rang]=qtsplit(rang1(i1,:),gsize1);
for x=1:1:4
dr=double(rang(x,:));
meansrang(x)=mean(dr(1,:));
varsran(x)=var(dr(1,:));
So I got the Result in different formate and Error image also. how can i rectify that formate?
(rang2)=[rang] possible or not? how can i change the type[] to ( ). Any one pleas help to my question.
Thank you.

Best Answer

If SPLIT is a function, then () is needed. This is the syntax function(parameter1, parameter2).
[] concatenates. Simply try
[1, 2, 3]
in the command window and you will see.
From this question, I do not see a format that can be changed. () and [] are used for different purposes.