Insert lines from "figure" on Matlab code
古いコメントを表示
I plot a figure on matlab and i want to insert a line from the figure window inside my plot and view it again on the next run. I right click the line and choose the "show code" option to view the code and the new m file that has been created with a function name.How do i import this code on my main m.file?


回答 (1 件)
Walter Roberson
2019 年 1 月 27 日
If you are inside a GUIDE GUI callback, then
fig = ancestor(hObject, 'figure');
createline2(fig);
カテゴリ
ヘルプ センター および File Exchange で Creating, Deleting, and Querying Graphics Objects についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!