필터 지우기
필터 지우기

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

조회 수: 2 (최근 30일)
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

채택된 답변

Daniel Shub
Daniel Shub 2011년 9월 5일
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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by