Is giving a space after comma in functions the convention?
I more often see
y = pdf(‘t’, x, df);
than
y = pdf(‘t’,x,df);
That is, people often give a space after comma when writing the input arguments in a function. But then when indexing from an array like
array[1,2]
they do not do this. I also see this happening in books. So is this indeed a convention? If not, what is the comvention? Or are both just a matter of preference. But I doubt that preference is the case because I consistently see the above happening.I more often see
y = pdf(‘t’, x, df);
than
y = pdf(‘t’,x,df);
That is, people often give a space after comma when writing the input arguments in a function. But then when indexing from an array like
array[1,2]
they do not do this. I also see this happening in books. So is this indeed a convention? If not, what is the comvention? Or are both just a matter of preference. But I doubt that preference is the case because I consistently see the above happening. I more often see
y = pdf(‘t’, x, df);
than
y = pdf(‘t’,x,df);
That is, people often give a space after comma when writing the input arguments in a function. But then when indexing from an array like
array[1,2]
they do not do this. I also see this happening in books. So is this indeed a convention? If not, what is the comvention? Or are both just a matter of preference. But I doubt that preference is the case because I consistently see the above happening. syntax MATLAB Answers — New Questions