Hi everyone, I'm getting this error when adding [Edit Field(numering)] in Matlab Online.

3 commentaires

@Damdinsvren Bayasgalan. What is the concrete code you use to create the EditField.
type uieditfield
function editfieldComponent = uieditfield(varargin) %UIEDITFIELD Create text or numeric edit field component % editfield = UIEDITFIELD creates a text edit field in a new UI figure % window. % % editfield = UIEDITFIELD(style) creates an edit field of the specified % style. % % editfield = UIEDITFIELD(parent) specifies the object in which to create % the edit field. % % editfield = UIEDITFIELD(parent,style) creates an edit field of the % specified style in the specified parent object. % % editfield = UIEDITFIELD( ___ ,Name,Value) specifies edit field % properties using one or more Name,Value pair arguments. Use this option % with any of the input argument combinations in the previous syntaxes. % % Example 1: Create a Text Edit Field % % Create a text edit field, the default style for an edit field. % editfield = uieditfield; % % Example 2: Create a Numeric Edit Field % % Create a numeric edit field by specifying the style as numeric. % editfield = uieditfield('numeric'); % % Example 3: Specify Parent Object for Numeric Edit Field % % Specify a UI figure as the parent object for a numeric edit field. % fig = uifigure; % editfield = uieditfield(fig,'numeric'); % % See also UIFIGURE, UILABEL, UITEXTAREA % Copyright 2017 The MathWorks, Inc. args.styleNames = {... 'text', ... 'numeric' ... }; args.classNames = {... 'matlab.ui.control.EditField', ... 'matlab.ui.control.NumericEditField' ... }; args.defaultClassName = 'matlab.ui.control.EditField'; args.functionName = 'uieditfield'; args.userInputs = varargin; try editfieldComponent = matlab.ui.control.internal.model.ComponentCreation.createComponentInFamily(args); catch ex error('MATLAB:ui:EditField:unknownInput', ... '%s', ex.message); end
Damdinsvren Bayasgalan
Damdinsvren Bayasgalan il y a environ 15 heures
@Chuguang Pan. There is no code. I just created new blank app and dragged [Edit Field(Numeric)] from Component library in Design Veiw.
Chuguang Pan
Chuguang Pan il y a environ 4 heures
@Damdinsvren Bayasgalan. Maybe this error is caused by some bugs about the GUI of App Designer.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Environment and Settings dans Centre d'aide et File Exchange

Question posée :

le 15 Juil 2026 à 7:40

Commenté :

il y a environ 21 heures

Community Treasure Hunt

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

Start Hunting!

Translated by