MATLAB Programming Fundamentals - MathWorks
choice likely depends on whether you are working on a file to be deployed. When you change the preference, it also changes the s ...
Improve Code Readability In this section... “Indenting Code” on page 24-20 “Right-Side Text Limit Indicator” on page 24-22 “Code ...
This image illustrates the function indenting formats. NoteIndenting preferences are not supported for TLC, VHDL, or Verilog and ...
Right-Side Text Limit Indicator By default, a light gray vertical line (rule) appears at column 75 in the Editor, indicating whe ...
To expand or collapse code, click the plus or minus sign that appears to the left of the construct in the Editor. You can also p ...
trailing white space and comments in a function definition that has no explicit end statement. “Code Folding Enabled for Functio ...
Code Folding Enabled for Sections Only Improve Code Readability ...
Code Folding Enabled for Both Functions and Sections Code Refactoring — Automatically convert selected code to a function In the ...
Refactoring is also available in the Editor in MATLAB Online. To refactor a selected area of code in the MATLAB Online Editor, o ...
Find and Replace Text in Files In this section... “Find Any Text in the Current File” on page 24-28 “Find and Replace Functions ...
the same name, but are in different scopes on page 20-11, highlighting one does not cause the other to highlight. Find reference ...
To disable automatic highlighting, go to the Home tab and in the Environment section, click Preferences. In MATLAB > Colors & ...
Function or Variable Renamed Example Variable name on the left side of assignment statement Rename y in: y = 1 As you rename suc ...
Automatic variable and function renaming is enabled by default. To disable it: 1 On the Home tab, in the Environment section, cl ...
Go To Location in File You can go to a specific location in a file, such as a line number or function definition, set bookmarks, ...
Go To Steps Notes (^1) In the Current Folder browser, click the name of the file open in the Editor. (^2) Click the up arrow at ...
Go To Steps Notes Property^1 In the Current Folder browser, click the name of the file that is open in the Editor. (^2) Click th ...
Set Bookmarks You can set a bookmark at any line in a file in the Editor so you can quickly navigate to the bookmarked line. Thi ...
You can still go to the lines preceding the interruption point in the sequence, but you cannot go to any lines after that point. ...
Item Action Other If the selection is some other type, Open selection looks for a matching file in a private folder in the curre ...
«
41
42
43
44
45
46
47
48
49
50
»
Free download pdf