Calling Variables

1 次查看(过去 30 天)
skyimager
skyimager 2012-6-3
I am defining variable 's' in one function of my gui. Now i want to use "s" in another function of my same gui. How can i do that?
  2 个评论
Walter Roberson
Walter Roberson 2012-6-3
Is your question about fprintf() the same question as this one?
http://www.mathworks.com/matlabcentral/answers/40166-problem-with-fprintf
skyimager
skyimager 2012-6-3
No sir. That problem is different. This problem is solved. By declaring the variable as global in BOTH the functions i can use it.
But the problem with fprintf still remains.

请先登录,再进行评论。

回答(1 个)

Walter Roberson
Walter Roberson 2012-6-3

类别

Help CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by