Test case, specified as a matlab.uitest.TestCase object.
Component to type in during test, specified as a UI component object that supports a type gesture. Components that support type gestures include edit fields and text areas.
Value to type into the component. The data type of
value depends on the type of component under test.
For example, if the component is a spinner, specify
value as numeric. If the component is a text area
or table, specify value as a character vector or
string.
Target table UI component, specified as a
matlab.ui.control.Table object. Table UI components are
created with the uitable function.
Indices of the table cell to type in, specified as a 1-by-2 vector with
the row index appearing before the column index.
Create a table UI component that contains a mixture of different data types. Set the ColumnEditable property to true so that users can edit the data in the table.
fig = uifigure;
uit = uitable(fig);
d = {'Male',52,true;'Male',40,true;'Female',25,false};
uit.Data = d;
uit.ColumnName = {'Gender','Age','Authorized'};
uit.ColumnEditable = true;
Create an interactive test case and verify the initial value of the table cell with indices (1,2).
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.