How to run two scripts simultaneously while sharing data and plotting?

1 回表示 (過去 30 日間)
Neel Talati
Neel Talati 2018 年 10 月 15 日
コメント済み: prasanth s 2022 年 12 月 14 日
I need to run two functions simultaneously namely func1 and func2. However I need func1 to make a plot based on some data (coming on the serial port and) being read and processed by func2.
It is not possible for me in any way to merge the two functions into one. I looked into parpool but it seems like it doesn't allow making figures while running in parallel.
Please recommend how can I make func1 plot a figure based on data coming from func2 in parallel?
  1 件のコメント
prasanth s
prasanth s 2022 年 12 月 14 日
save the data of func1 periodically. and read it from func2 and plot

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

製品


リリース

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by