How to extract a negative value from a column vector? App designer
1 view (last 30 days)
Show older comments
Commented: Giulia Di Giorgio on 18 Mar 2023
Hello, I programmed an UITable and I want to establish a condition that warns the user when entering values n<0, but I'm not sure how to do it. I tried with the "contain" command but it says "not enought input arguments", I also tried with the "find" command but I don't know how to set the condition with that one. I'll attatch my code and app. Thanks
%Obtener los datos de la tabla
%Obtener las columnas de la tabla
k=find(h<0); j=find(tP<0); l=find(tT<0);
Cris LaPierre on 18 Mar 2023
I think you would need to define the CellEditCallback function. This function will execute everytime a cell is edited. You would just to write code to check the value and provide the warning when your condition is met.
More Answers (0)
Find more on Downloads 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!