A figure created within a for loop is not plotted (only the last one is shown)
Show older comments
Hello! I have the code attached.
A figure created within a for loop (fig_2.png) is not plotted (only the last one figure is shown -> fig_5.png).
I would like to get the figure on the left (see bottom) but I actually get the figure on the right, that is, it is missing the plotting of a curve (fig_2.png).

3 Comments
Mathieu NOE
on 5 Dec 2022
hello again Alberto
I wish I could help you but I don't have the Image Processing Toolbox
but I can help you on the code that cause you trouble if you can send me the data (CoordinateMatrix) as mat file .
Alberto Acri
on 5 Dec 2022
Mathieu NOE
on 5 Dec 2022
you can avoid the 10 files attachment limit by zipping all files , then you have again room for attaching 'CoordinateMatrix' data
Accepted Answer
More Answers (1)
Jiri Hajek
on 5 Dec 2022
0 votes
Categories
Find more on 2-D and 3-D Plots 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!