MATLAB Programming Fundamentals - MathWorks
Presenting MATLAB Code MATLAB software enables you to present your MATLAB code in various ways. You can share your code and resu ...
Publish and Share MATLAB Code MATLAB provides options for presenting your code to others, including using publishing and creatin ...
Publish MATLAB Code Publishing a MATLAB Code file (.m) creates a formatted document that includes your code, comments, and outpu ...
MATLAB Code with Markup Published Document To publish your code: 1 Create a MATLAB script or function. Divide the code into step ...
LaTeX equation % $$ y = y + \frac{sin(k*t)}{k} $$ NoteWhen you have a file containing text that has characters in a different en ...
More About “Create Live Scripts in the Live Editor” on page 19-7 “Publishing Markup” on page 23-7 “Output Preferences for Publi ...
Publishing Markup In this section... “Markup Overview” on page 23-7 “Sections and Section Titles” on page 23-10 “Text Formatting ...
Starting new markup often requires preceding blank comment lines, as shown in examples. Markup only works in comments that imme ...
Result in Output Example of Corresponding File Markup “Text and Code Blocks” on page 23-13 %% % % PREFORMATTED % TEXT % %% MATLA ...
Result in Output Example of Corresponding File Markup “LaTeX Markup” on page 23-24 %% LaTeX Markup Example % <latex> % \be ...
Text Formatting You can mark selected text in the MATLAB comments so that they display in italic, bold, or monospaced text when ...
Trademark Symbols If the comments in your MATLAB file include trademarked terms, you can include text to produce a trademark sym ...
Text and Code Blocks Preformatted Text Preformatted text appears in monospace font, maintains white space, and does not wrap lon ...
To indicate sample code, you must put three spaces between the comment symbol and the start of the first line of code. For examp ...
External Graphics To publish an image that the MATLAB code does not generate, use text markup. By default, MATLAB already includ ...
1 Create a subfolder called html in your current folder. 2 Create surfpeaks.jpg by running this code in the Command Window. save ...
Output File Format Default Image Format Types of Images You Can Include doc png Any format that your installed version of Micros ...
code, use the Max image width and Max image height fields in the Publish settings pane, as described in “Output Preferences for ...
%% LaTeX Inline Expression Example % % This is an equation: $x^2+e^{\pi i}$. It is % inline with the text. If you publish the sa ...
Hyperlinks Static Hyperlinks You can insert static hyperlinks within a MATLAB comment, and then publish the file to HTML, XML, o ...
«
38
39
40
41
42
43
44
45
46
47
»
Free download pdf