Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

MATLAB plot on an axe on a different figure

  1. Jun 9, 2009 #1

    I have this problem:
    I have a main file (main.m) in which is coded a for loop (needed for some data-gathering). De data is stored in a vector.
    This vector is passes to a 2nd figure (test1.m) which has an axe. Here I want to plot the data in a "real-time" mode. I do this with another for-loop.
    Because MATLAB apparently doens't support Multi-threading, I want to edit main.m on this way:
    Inside the for-loop I want to say something like: plot in the axe in test1.m.

    I understand that this must be done with handles, but I can't figure out how to do this.

    Any help?
  2. jcsd
  3. Jun 13, 2009 #2


    User Avatar
    Science Advisor

  4. Jun 13, 2009 #3
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook