Three ways to annotate multiple lines of MATLAB

Source: Internet
Author: User

Transferred from: http://icictech.blog.163.com/blog/static/2797425420084595725499/

1) Method One

Select the content you want to annotate, and then choose the Tools menu "Text|comment", if you want to change the comment to a statement, also select the statement you want to convert, then use the mouse to select "Text|uncomment". Keyboard shortcut keys are "Ctrl+r".

Or select the content you want to annotate, right click on the mouse to select "Comment", if you want to change the comment into a statement, also select the statement to be changed, and then right-click the mouse to select "Uncomment" uncomment. Keyboard shortcut keys are "Ctrl+t".

2) Method Two

Using Matlab block annotation method

%{

You need to comment on several command lines that are not executed

%}

3) method Three

Add a line before the comment segment: if LOGICAL (0)

Add a line after the comment segment: End

Unlike the first two methods, this method actually does not execute the related statement through the logical judgment statement

===============

Three ways to annotate multiple lines of MATLAB

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.