Borrar filtros
Borrar filtros

how to make a single command line

1 visualización (últimos 30 días)
ajith
ajith el 4 de Jun. de 2013
%doubt
%regards
%make
%a single
% command line
sir my double regards how to make a all in command line for example in c language
/* doubt
regards
make
a single
command line*/ how we do it in matlab programming

Respuesta aceptada

Walter Roberson
Walter Roberson el 4 de Jun. de 2013
If you are asking how to make a single comment from multiple lines, then use %{ to start the comment and %} to end the comment.
%{
doubt
regards
make
a single
command line
%}

Más respuestas (2)

David Sanchez
David Sanchez el 4 de Jun. de 2013
you can't do it. The closest you get is selecting all the lines you want to comment and then Ctrl+R. This will insert a "%" at the beginning of each line. CTRL+L to uncomment.

Matt J
Matt J el 4 de Jun. de 2013
Editada: Matt J el 4 de Jun. de 2013
Bracket the lines you want to comment in %{ and %}
%{
doubt
regards
make
a single
command line
%}
The %{ and %} must occupy their own lines, however.

Categorías

Más información sobre Environment and Settings en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by