Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

Is it a bug in GUIDE?

2 Ansichten (letzte 30 Tage)
Anup Kayande
Anup Kayande am 10 Mär. 2016
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
I am trying to run some lines of code that run perfectly in m-script. The code is long and I can not paste it here. My point is that why MATLAB GUI does not run the script as the normal m-script. I am working on a project based on Sudoku based image steganography, in which I have successfully programed the project in m-script, but when I try to incorporate the code in MATLAB GUI script, it's not working the way it worked in normal m-script. Is it a bug?
NOTE - I have checked all the handles and GUI objects. There is no error in them.

Antworten (1)

Walter Roberson
Walter Roberson am 10 Mär. 2016
GUIDE does not program in terms of scripts. GUIDE programs in terms of functions. All the callbacks you code will be in functions. Scripts typically run in the base workspace, but functions run in their own workspace, and would have to specifically ask for variables in the base workspace and would have to specifically write to the base workspace to store variables if it wanted to do that.
  6 Kommentare
Image Analyst
Image Analyst am 10 Mär. 2016
Thanks Adam - I didn't know that form of accessing the string content was now available.
Anup Kayande
Anup Kayande am 10 Mär. 2016
Never mind. My MATLAB has started crashing when I try to open GUIDE. Let me have a look at it.
Thank you everyone for taking your time out for me.

Diese Frage ist geschlossen.

Community Treasure Hunt

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

Start Hunting!

Translated by