space between two line in matlab

You can create extra space between two lines in MATLAB by using the newline character \n. Here is an example:

main.m
fprintf('This is line 1.\n\n');
fprintf('This is line 3.');
60 chars
3 lines

This code will print two lines with an empty line between them:

main.m
This is line 1.

This is line 3.
33 chars
4 lines

related categories

gistlibby LogSnag