GUI axes question, need help having a minimal and maximal edit box for the x axes values

3 次查看(过去 30 天)
How would I be able to change the value of the x axes in a GUI for a plot using two edit boxes-a minimal x value box and a maximal x value box?

采纳的回答

Rik
Rik 2019-7-21
Set the XLim property of the axes object in a callback.
Make sure not to forget to use str2double, to check for NaN input, to insert default values for missing fields, and to make sure that the max is larger than the min.
  2 个评论
Caitlin Schmidt
Caitlin Schmidt 2019-7-21
Could you provide an example? i have never used the XLim property before and am wondering how I should be implementing it. Thank you!

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Interactive Control and Callbacks 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by