Comments on: MATLAB Basics: GUI input validation https://blogs.mathworks.com/videos/2007/10/30/matlab-basics-gui-input-validation/?s_tid=feedtopost Stuart uses video to share his experiences solving problems with MATLAB day-to-day, interesting new features, plus tips and tricks he has picked up along the way. Mon, 04 Apr 2016 20:24:55 +0000 hourly 1 https://wordpress.org/?v=6.2.2 By: Doug https://blogs.mathworks.com/videos/2007/10/30/matlab-basics-gui-input-validation/#comment-604 Thu, 08 Nov 2007 14:37:45 +0000 https://blogs.mathworks.com/videos/2007/10/30/matlab-basics-gui-input-validation/#comment-604 Ken,

Thank you, the file was corrupted. I have verified the fix is working now.

Thanks,
Doug

]]>
By: Ken Rotter https://blogs.mathworks.com/videos/2007/10/30/matlab-basics-gui-input-validation/#comment-605 Thu, 08 Nov 2007 09:33:28 +0000 https://blogs.mathworks.com/videos/2007/10/30/matlab-basics-gui-input-validation/#comment-605 Video cutting off after 1:30 seconds today- tried three times.

]]>
By: Doug https://blogs.mathworks.com/videos/2007/10/30/matlab-basics-gui-input-validation/#comment-606 Fri, 02 Nov 2007 12:40:24 +0000 https://blogs.mathworks.com/videos/2007/10/30/matlab-basics-gui-input-validation/#comment-606 José,

I totally agree with your idea here. In my video series “Cleaner Code in MATLAB”

https://blogs.mathworks.com/pick/2006/12/13/cleaner-code-in-matlab-part-1-of-series/
https://blogs.mathworks.com/pick/2007/01/12/cleaner-code-in-matlab-part-two/

I talk about how you should avoid the use of Magic Numbers. Sometimes I do things for brevity in the videos that I could do better with more time.

Thanks!
Doug

]]>
By: José Ramón Menzinger https://blogs.mathworks.com/videos/2007/10/30/matlab-basics-gui-input-validation/#comment-603 Wed, 31 Oct 2007 11:20:28 +0000 https://blogs.mathworks.com/videos/2007/10/30/matlab-basics-gui-input-validation/#comment-603 It is a fine Exampla but the code line:
set(hObject, ‘String’, ’12’);
is IMO not realy adecuate.

These kind of declarations will produce “other errors” soon or later… I find better something like:

set(hObject, ‘String’, num2str(modeNum) );

so wenn you mustchange the treshold value you shuoldf change only one value, isn’t it?

Best regards!

J.R.!

]]>