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

1 view (last 30 days)
% Value changed function: Fonction
function FonctionValueChanged(app, event)

Answers (1)

Matt J
Matt J on 15 Apr 2022
Edited: Matt J on 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

Categories

Find more on Text Data Preparation in Help Center and File Exchange

Tags

Products


Release

R2022a

Community Treasure Hunt

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

Start Hunting!