defining several command lines as description without using sign % before all of them

i write a script and i want to run it step by step for easy troubleshooting.how can i define a command line and all of the line after it as description? for example i have a 30 line command script and i want to run only the first three lines and all the other 27 lines define as description.is there any way to do this without using sign '%' line by line? i dont want to use sign '%' 27 times for all of remaning line.is there easier solution? thanks

回答 (1 件)

José-Luis
José-Luis 2014 年 1 月 29 日
編集済み: José-Luis 2014 年 1 月 29 日
%{
Look I am all commented out
Even here
and here
ad nauseam
%}

4 件のコメント

millennium
millennium 2014 年 1 月 29 日
do you mean that i use %{ before the first line and %} after the last one? i do it but only the first line is changed as description and the remaining one dont change.how can i do?
José-Luis
José-Luis 2014 年 1 月 29 日
Yes, that's what I meant. Please search for "Add comment to program" in the help box. It is explained in detail there.
millennium
millennium 2014 年 1 月 29 日
thank José-Luis
José-Luis
José-Luis 2014 年 1 月 29 日
Please accept an answer if it helps you.

この質問は閉じられています。

タグ

タグが未入力です。

質問済み:

2014 年 1 月 29 日

閉鎖済み:

2021 年 8 月 20 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by