MATLAB Answers

How to automate the legend in GUI especially when use of for loop ?

조회 수: 2(최근 30일)
Gopinath Karuppannan
Gopinath Karuppannan 11 Feb 2020
I have to automate the legend in for loop. When i try with below code, i couldn't able to automate the legend.
For information : X gets incremented everytime and also Y.
eval(['plot(X' num2str(i) ',Y' num2str(i), 'DisplayName','Gopi' ')']) -----> it is not working
  댓글 수: 2
Gopinath Karuppannan
Gopinath Karuppannan 13 Feb 2020
Thanks Rik. I have used the strategy of storing the data. It works fine for me. Thanks for your help

댓글을 달려면 로그인하십시오.



Community Treasure Hunt

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

Start Hunting!

Translated by