Hello is there a way have an editfield where uyou are able to put numerical and text ?

1 visualizzazione (ultimi 30 giorni)
% Value changed function: Fonction
function FonctionValueChanged(app, event)

Risposte (1)

Matt J
Matt J il 15 Apr 2022
Modificato: Matt J il 15 Apr 2022
An editfield can only store its data as text, but if text containing numbers is entered, you can easily convert it to an actual numeric value using str2double().
str2double('21.5')
ans = 21.5000

Categorie

Scopri di più su Text Data Preparation in Help Center e File Exchange

Tag

Prodotti


Release

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by