Stuart’s MATLAB Videos

Watch and Learn

Exploring uitable properties

I got a question via e-mail that was asking how to set the data in a uitable. Setting the data in a uitable is as easy as: >> a = uitable >> set(a,’data’, magic(3)) The important part of this video is seeing the thought process of discovering that. When you programmatically create a uicontrol, or uitable, you should capture the handle to that widget, as I did with a. When you have that handle you can GET or SET the properties of the widget.
 
|
  • print

评论

要发表评论,请点击 此处 登录到您的 MathWorks 帐户或创建一个新帐户。