What does 3 dot means( ... ) in matlab?? -


i new in matlab. can please tell me below code 3 dot ( ... ) means??

defaults = struct(... 'thresholddelta', 5*190/255, ... 'regionarearange', [180 1000], ... 'maxareavariation', 0.25,... 'roi', [1 1 imgsize(2) imgsize(1)]); 

the 3 dots mean line continuation.

so syntax:

defaults = struct(... 'thresholddelta', 5*190/255); 

is strictly equivalent to:

defaults = struct('thresholddelta', 5*190/255); 

matlab expressions end @ end of line unless continued .... syntax:

defaults = struct( 'thresholddelta', 5*190/255); 

produces error (expression or statement incorrect--possibly unbalanced (, {, or [.).

for record, there 1 exception above rule: within array building operator [] new line accepted without need ... , similar colon ;. instance:

>> = [1 2     % use shift+enter in command line go start new line  3 4]  =       1     2      3     4 

Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -