Hi, dear all,
For example, if I write a if loop, after end, what is the difference if I use ;?
No products are associated with this question.
None, you don't need a semi-colon after an end statement. Putting a semi-colon in or leaving one off do not generate mlint warnings.
I often add a semicolon or comma after statements like "end" where they are not strictly useful so that I can easily create single line commands. This is especially true when trying to answer questions on Answers
For example, you need a semicolons/commas to make the following work
for ii = 1:10, end; ii