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

3 Kommentare

@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 am 16 Jul. 2026 um 0:07
@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 am 16 Jul. 2026 um 10:32
@Damdinsvren Bayasgalan. Maybe this error is caused by some bugs about the GUI of App Designer.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Environment and Settings finden Sie in Hilfe-Center und File Exchange

Kommentiert:

am 16 Jul. 2026

Community Treasure Hunt

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

Start Hunting!

Translated by