Why Matlab publish code function show only the last figure of every cell?

4 ビュー (過去 30 日間)
Niptic
Niptic 2012 年 10 月 8 日
I used the publish code function by matlab to generate report of a script. By evaluating every cell, in the end report show only the last figure of every cell, if there are more than one plots that actually should show. Do anyone also have the same problem? Have I miss the right configuration?
Thanks and Regards.

回答 (1 件)

Junaid
Junaid 2012 年 10 月 8 日
If there are different plot figures then there should be subplot function, or if on one figure you have many curves, then after each plot just add
hold on;
using hold function it will not only show the last but all before.

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by