Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

1
  • Can you save the intermediate results as a series of values (or points) and plot that at the end? Two interacting components are decoupled via a suitable abstraction; the abstraction here is that a plot is just a graphic based on a series of input data points (even with nominally continuous functions) - I'm guessing you can treat it that way in matlab. However, if it's preferable to do it "on the fly", then dependency injection as described by Doc Brown is a good option. Commented Mar 21, 2020 at 23:58