GUI - To run a matlab script from gui

조회 수: 3 (최근 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에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by