필터 지우기
필터 지우기

Get the value of one .m file and use those values to plot in GUI

조회 수: 2 (최근 30일)
ARN
ARN 2018년 12월 12일
댓글: madhan ravi 2018년 12월 12일
Hi!
lets suppose i have a .m file which contains the following code
a=[1:0.01:10]
x=sin(2.*pi.*a)
plot(a,x)
check
where check.m is GUI file which takes the value a and x plot it in axes1.
Question is : Even the values of a and x are in workspace check still does not get those values. How can i give the values of a and x in OpeningFcn?
Thanks

답변 (1개)

madhan ravi
madhan ravi 2018년 12월 12일
편집: madhan ravi 2018년 12월 12일
Make the check as a function file and create two input arguments(parameterising function) thereby passing the values as input arguments.
check(a,x)
  댓글 수: 4
ARN
ARN 2018년 12월 12일
Ok thanks! but i want to avoid making a function as it will have more than 21 parameters to start with; which will be more complicated than needed.
I think there is a solution where you can just access it through object.xxx or handles.xxx ?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

제품


릴리스

R2016a

Community Treasure Hunt

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

Start Hunting!

Translated by