Clear Filters
Clear Filters

How to validate input dialog?

2 views (last 30 days)
vimal gayan
vimal gayan on 28 May 2019
caUserInput = inputdlg(Prompts, titleBar, 1);
if length(caUserInput) > 10
f = warndlg('Exceed numbers','Warning');
return
end
I insert some values from the input dialog,Then i need to check the length of the value is exced the 10,
How can i do it?
I try it in this way,But it dosent work.

Answers (0)

Categories

Find more on Images in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!