How can I break line in comment for HTML publication?

32 views (last 30 days)
Hello.
For example
%%Test section
% I want to have line break
% now.
But obviously the result is not what I want.
Please tell me how to do this.
and everyone happy new year and just have peace in your mind as long as possible.

Answers (3)

Shoaibur Rahman
Shoaibur Rahman on 1 Jan 2015
%%Test section
After the break!
  3 Comments
Brett Bussell
Brett Bussell on 8 Oct 2019
Edited: Brett Bussell on 8 Oct 2019
2 spaces after the % symbols is the key to fix this!! Thanks!

Sign in to comment.


Mike Stein
Mike Stein on 30 Mar 2018
How is this not possible????? THERE MUST BE AN ANSWER

Kiera Kunde
Kiera Kunde on 2 Apr 2020
%{
this is how you comment out multiple
lines in MATLAB
%}
the %{ and %} must be on their own line. For more information, this link will help: https://www.mathworks.com/help/matlab/matlab_prog/comments.html

Categories

Find more on Environment and Settings in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!