How to prevent MATLAB from creating a figure?

6 views (last 30 days)
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.matlabPlot.JPG
  2 Comments
the cyclist
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.
Adam Danz
Adam Danz on 23 Sep 2019
Edited: Adam Danz on 23 Sep 2019
Step through the code, line by line, until the figure is created. Then you'll know what line is producing the figure.

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!