MATLAB Compiler    

Listing All Formatting Options

To view a list of all available formatting options, use

Setting Page Width

Use the page-width:n option to set the maximum width of the generated code to n, an integer. The default is 80 columns wide, so not selecting any page width formatting option will automatically limit your columns to 80 characters.

Setting the page width to a desired value does not guarantee that all generated lines of code will not exceed that value. There are cases where, due to indentation perhaps, a variable name may not fit within the width limit. Since variable names cannot be split, they may extend beyond the set limit. Also, to maintain the syntactic integrity of the original M source, annotations included from the M source file are not wrapped.

Default Width

Not specifying a page width formatting option uses the default of 80. Using

generates this code segment:

Page Width = 40

This example specifies a page width of 40:

The segment of generated code is


  Formatting Compiler-Generated Code Setting Indentation Spacing