Publishing Scripts with subsections

2 ビュー (過去 30 日間)
Stefan
Stefan 2016 年 12 月 22 日
編集済み: Stefan 2017 年 1 月 26 日
I want to use the "publish" function to publish my script, e.g.
%%Part a
a = 5; b = 6;
plotab(a,b);
%%Part b
a = 4; b = 5;
plotab(a,b);
while plotab is a function:
function plotab( a,b )
tVec = 0:1:10;
%%First Plot
figure;
plot(tVec, a^2 .* tVec);
%%Second Plot
figure;
plot(tVec, b^2 .* tVec);
end;
Unfortunately the two sections "First Plot" and "Second Plot", defined inside the function, do not appear in the html-document. So the two generated figures are just appended at the end of section "Part a" and "Part b", without any subsection defined inside the function.
How can I publish so that the "subsections", defined inside the function, are documented as well as the sections, defined at main level in the script.
  1 件のコメント
per isakson
per isakson 2016 年 12 月 23 日
編集済み: per isakson 2016 年 12 月 23 日
I don't think you can.
  • The documentation doesn't say it can be done. (AFAIK)
  • There is no option to make it happen.
  • The behavior is in accordance with the documentation, as I read it.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeSimulink についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by