How to dynamically define limits for multiple plots from user input in app designer?

1 ビュー (過去 30 日間)
farzad
farzad 2020 年 9 月 3 日
コメント済み: farzad 2020 年 9 月 4 日
Hi All
I want to have a sort of While loop in my app designer, that untill app doesn't receive OK from the user, it prompts the axis limits from the user and each time correct the plot so the plot could be visually checked and confirmed.
my problem is : I have several files , and each one have 6 columns, so I should make 6 plots out of each file, and for each plot , I should manually check the limits and give ok to jump to the next plot and then to the next file. I don't want to make this jumps manually but only defining the limits. how do I do this ?

採用された回答

Mohammad Sami
Mohammad Sami 2020 年 9 月 3 日
Instead of having a while loop you can simply have numeric edit fields with callbacks and an ok button with callback.
Once the user edits the field, the callback will updated the axis limit.
Once the user is happy they can click the ok button.
The ok button callback will do two things
  1. It will save the final values
  2. It will jump to the next plot if there is a next plot
Thereafter the cycle can repeat again until you are out of plots to check

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by