Too many input arguments

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

3 Commenti

@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
@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 circa 2 ore fa
@Damdinsvren Bayasgalan. Maybe this error is caused by some bugs about the GUI of App Designer.

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Environment and Settings in Centro assistenza e File Exchange

Richiesto:

il 15 Lug 2026 alle 7:40

Commentato:

circa 13 ore fa

Community Treasure Hunt

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

Start Hunting!

Translated by