How to choose when to display a plot in publishing

조회 수: 26 (최근 30일)
Welbeck  Sintim
Welbeck Sintim 2017년 6월 19일
답변: Yusuf Tar 2020년 3월 2일
How do I choose where to display a plot when I publish a file? For example, when I write a series of code to plot three different plots, after publishing it, the three plots only show up after all the codes have been printed.I don't want it that way. I want each plot to be displayed immediately after its code have been executed. How do I do that?

답변 (2개)

Gopeshh Raaj
Gopeshh Raaj 2017년 6월 22일
I understand that you want the multiple plots in a MATLAB script to be published right after it's respective code block instead of publishing all plots at the end.
The solution is to put the '%%' symbol before every block of code in your MATLAB script and then publishing it. Now, the plots will be published after it's respective code block is executed.

Yusuf Tar
Yusuf Tar 2020년 3월 2일
If snapnow doesn’t work , seperate plots into sections.

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by