How to Run an m.file from GUIDE push button?
    2 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
    Kai Hao Then
 am 24 Mär. 2011
  
    
    
    
    
    Bearbeitet: g z
 am 19 Aug. 2015
            I am using GUIDE to build my GUI. I need a push button to run an m.file which consists of my neural network. Please advise what should I put in the CreateFcn column if I want to run my m.file by pressing the push button. Thanks.
0 Kommentare
Akzeptierte Antwort
  Matt Fig
      
      
 am 24 Mär. 2011
        Leave the CreateFcn alone for this task. Put the call to the M-file in the callback for the pushbutton. The callback is the function that is called when the button is pushed. For example, if the name of your M-file is myfile.m, then put this line in the callback for the pushbutton:
myfile;
Now if you need to pass argments to myfile, or get a return value, then we will have to add to this basic syntax.
3 Kommentare
  Matt Fig
      
      
 am 31 Mai 2011
				Is myfile a function or script? Which workspace? Every function has its own workspace, and then there is the base workspace (command window). Do you mean the base workspace? What do you mean load the variables? Load them where? Perhaps you need to start your own question?? Please describe the problem more thoroughly, step-by-step what you want to happen!
Weitere Antworten (1)
  g z
 am 19 Aug. 2015
        hello all . i do this work . but i want to get an array from a "Edit text" and use it in a for-end , but when i want to covert it to a numeric array , i failure . can i have a for-loop in GUI ? how ?
1 Kommentar
Siehe auch
Kategorien
				Mehr zu Deep Learning Toolbox finden Sie in Help Center und File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!