How to prevent MATLAB from creating a figure?
6 views (last 30 days)
Show older comments
I'm writing code that reads through a text document containing section headers with numerical data in each section. I'm able to pull out the data to the correct variables, but for some reason when I run my script MatLab outputs a line plot. I don't use any sort of graphing function anywhere in my code, so I'm not sure where the figure is coming from. A friend suggested that I didn't suppress my outputs, but I've checked and that's not the issue.
Thanks for any help you can give me. I've attached an image of the plot below.
2 Comments
the cyclist
on 23 Sep 2019
Showing a plot, and saying your code does not call any plotting functions, is not very helpful.
Can you upload the code and tell us how you call it?
If you cannot do that, then I suggest you use the debugger. You could set a breakpoint very near the beginning of the code, and step through line-by-line until the figure appears. Then you'll see what is triggering the plot.
Answers (0)
See Also
Categories
Find more on Annotations 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!