Get the value of one .m file and use those values to plot in GUI
1 回表示 (過去 30 日間)
古いコメントを表示
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
0 件のコメント
回答 (1 件)
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 件のコメント
参考
カテゴリ
Help Center および File Exchange で Migrate GUIDE Apps についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!