GUI - To run a matlab script from gui

9 次查看(过去 30 天)
Luffy
Luffy 2012-6-25
I plotted a graph and created a gui for line width,style,color.....,of graph and now I want to run script from gui with new settings. How do i do that ?

回答(1 个)

Walter Roberson
Walter Roberson 2012-6-25
Just give the name of the script (without the '.m') as a line in the callback of the GUI. For example if the script file is named DoMyGraph.m then to run it from the GUI callback, include the line
DoMyGraph
  1 个评论
Luffy
Luffy 2012-6-26
Yeah,I did that and i used assignin command to change settings so that they are changed in base work space, they changed in base work space but did not get applied to plot,how to solve this problem.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Graphics Objects 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by