How to validate input dialog?

2 次查看(过去 30 天)
vimal gayan
vimal gayan 2019-5-28
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.

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Images 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by