简体   繁体   English

在MATLAB中同时使用plot和inputdlg框

[英]Simultaneous use of plot and inputdlg box in MATLAB

I'm trying to do some automation with a function in MATLAB. 我正在尝试使用MATLAB中的函数进行一些自动化。

I plot a graph and then from that plot I want the user to read off 2 values and enter them into some inputdlg boxes. 我绘制了一个图,然后从该图中我希望用户读取2个值并将它们输入到一些输入的lg框中。

When the inputdlg appears I can't access the plot to zoom in on the values I want. 当inputdlg出现时,我无法访问该图来放大所需的值。

Is there a way to do this where I can have the graph free to be used while the 2 inputdlgs appear one after another and then the rest of the code continue to run perhaps on the closing of the graph or the second inputdlg. 有没有办法做到这一点,我可以自由使用图,而2个输入的lg接一个出现,然后其余代码可能在图或第二个输入的lg闭合时继续运行。

inputdlg creates modal windows, which means that you can't activate it and interact with other windows. inputdlg创建模式窗口,这意味着您无法激活它无法与其他窗口进行交互。 I'm afraid that you need to create a figure that will host the input fields that you require. 恐怕您需要创建一个图来容纳所需的输入字段。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM