How to plot shapes in one figure

Dear all,
I'm trying to plot many shapes in one figure. I run my code many times and in each time I got a shape in a new figure. I wonder if I can get the shapes in the first one. I hope someone can advice me what to do.
Thanks

回答 (1 件)

Cris LaPierre
Cris LaPierre 2021 年 10 月 18 日

0 投票

4 件のコメント

nadia nadi
nadia nadi 2021 年 10 月 18 日
Hello Cris,
Thanks for replying. I used it, but I got the same problem. I'm calling a file like this many times so it gives many figures.
figure;
hold on
[ce]=PlotHo(z)
Cris LaPierre
Cris LaPierre 2021 年 10 月 18 日
Please share enough code to create a working example. For example, what is PlotHo?
nadia nadi
nadia nadi 2021 年 10 月 18 日
I have a set of points and I need to draw many shapes among them. I call the file (PlotHo) to plot one shape every time so when I call it again it gives me a new figure with the new shape without join them.
Cris LaPierre
Cris LaPierre 2021 年 10 月 18 日
Share your code. You can either copy/past or attach your script using the paperclip icon.
You could also try going through Ch 9 of MATLAB Onramp, which covers plotting.

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

カテゴリ

ヘルプ センター および File ExchangeCreating, Deleting, and Querying Graphics Objects についてさらに検索

製品

リリース

R2014a

質問済み:

2021 年 10 月 18 日

コメント済み:

2021 年 10 月 18 日

Community Treasure Hunt

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

Start Hunting!

Translated by