Workspace update
Show older comments
for some time now I have been trying to automatically update the workspace, unfortunately without result.
THis is the case:
I use a GUI in which I have installed a few axes which plot a variety of data. there are also a few boxes which can be adjusted. These inputs ( the x and y coordinates of a circel on a plane) are then used to calculate the data used in the graphs. The calculations are done with several programmes. THe gui links to a driver file, which also links to a paramater file. THis parameter file is actually used to compute the coordinates. I use the command run to run all the programmes.
Now the problem is that I have to actually run the parameter file with the calculation in order to obtain the coordinates I specified earlier in the GUI, for some reason this doesnt seem to work without me having to run the programma manually. Is there anything I can do to do this automatically, so that when I click on plot, the gui alteres the graphs for the specific coordinates I specified in the boxes in the gui?
CHeers,
Casper
Accepted Answer
More Answers (4)
Fangjun Jiang
on 23 Oct 2011
0 votes
It's not very clear in your question. I suspect it is an issue with the function workspace and MATLAB base workspace. You are probably looking for functions like evalin(), assignin().
Casper Hugel
on 23 Oct 2011
0 votes
1 Comment
Jan
on 23 Oct 2011
Please use standard code formatting.
Jan
on 23 Oct 2011
0 votes
The question is still not clear.
Usually callbacks of AXES or the UICONTROLs are used to start other functions after a user-interaction. These callbacks obtain the handle of the calling object, such that you can access the the properties or children of the object directly, or you can gain access to the other objects of the GUI by using GUIDATA or "get(ancestor(ObjectHandle, 'figure'))".
Casper Hugel
on 23 Oct 2011
0 votes
1 Comment
Jan
on 23 Oct 2011
At least I cannot see pictures hosted at tinypic. In addition posting code as pictures is not helpful, because citing needs to re-type the text.
The code formatting is explained exhaustively in the "Markup help" link above the box for writing the text. Either start a new sction with a blank line and insert two leading spaces in each line, or type the code, mark it with the mouse and hit the "{} code" button. See also: http://www.mathworks.com/matlabcentral/answers/13205-tutorial-how-to-format-your-question-with-markup .
Posting the code will not clarify the question. Terms like "gui links to a driver file" are too vague.
Categories
Find more on App Building 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!