Borrar filtros
Borrar filtros

how to display an error when user enters some integer data which is an invalid data using matlab GUI?

2 visualizaciones (últimos 30 días)
hi,
there is table which conatins around 9 parameters in the following format:ParName ParVal lowerlimit upperlimit
user can edit these values when doing so, if ParVal<lowerlimt or ParVal>upperlimt then an error has to be displayed
can anyone help regarding this?
pls its very urgent

Respuesta aceptada

Daniel Shub
Daniel Shub el 5 de Sept. de 2011
Assuming you know how to get ParVal and know what the lower/upper limits are:
if ParVal < lowerlimt || ParVal > upperlimt
errordlg(sprintf('The parameter must be between %f and %f', lowerlimit, upperlimit));
end

Más respuestas (0)

Categorías

Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by