MATLAB plot on an axe on a different figure

  • Context: MATLAB 
  • Thread starter Thread starter Gean
  • Start date Start date
  • Tags Tags
    Figure Matlab Plot
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
2 replies · 7K views
Gean
Messages
5
Reaction score
0
Hi,

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?
 
Physics news on Phys.org