Figure vs GUI….
![]() |
0.0 (0) |
I once had this experience, so I just decided to share it with the rest...
Once my friend came running to my room (I live in a hostel). After a brief chat, he said (rather claimed!) that MATLAB contains a bug. He said that he had designed a GUI in MATLAB using GUIDE (GUI Design Environment) for his semester project. It worked in his room, but at the presentation it didn’t work.
He showed me his work. When the figure (not the GUI!) popped up, he tried to click on a button, and MATLAB reported errors in the command window. My friend remarked that the errors were the same ones that came during the presentation.
The fact is that when designing GUIs with GUIDE, MATLAB separates the appearance of the GUI and its code in two separate files, the fig file, and the m file. As with all other fig files, its simply a ‘picture’ for MATLAB. So if you try to open it using the ‘Current Directory’ Window, it will consider at as a figure file. Hence clicking on any button will have no (positive) results, except for the errors I was mentioning.
I am not sure how may marks he lost for not being able to produce his results, but the incident reminds me of a saying.
"It's not a bug, it's a Feature!
User reviews
To write a review please register or login.
|
Category: TB-Reviews
|
|
Category: TB-Articles
|
|
Category: TB-Blog
|
|
Category: TB-Blog
|
|
Category: TB-Blog
|
|
Category: TB-Blog
|
|
Category: TB-Blog
|
|
Category: TB-Reviews
|
|
Category: TB-Reviews
|
|
Category: TB-Reviews
|
|
Category: TB-Reviews
|
|
Category: TB-Reviews
|
|
Category: TB-Reviews
|
|
Category: TB-Reviews
|
|
Category: TB-Reviews
|
|
Category: TB-Reviews
|
|
Category: TB-Blog
|
|
Category: TB-Blog
|





