Info
この質問は閉じられています。 編集または回答するには再度開いてください。
How to convert a script with call backs to uitable into function
2 ビュー (過去 30 日間)
古いコメントを表示
I have a script with two callbacks to two uitables, how can I convert this into a function
0 件のコメント
回答 (1 件)
Robert U
2017 年 9 月 7 日
Hi Snjeev Kumar,
from the information you provided the easiest way to create a function would be
function myFunctionName(~)
<- insert your script here ->
end
Kind regards,
Robert
2 件のコメント
Robert U
2017 年 9 月 7 日
While using functions variables have to be placed in the function workspace. Variables that have been used in main workspace are not available unless they are defined as global (should be omitted).
If you need variables from outside function workspace you have to pass them. See https://de.mathworks.com/help/matlab/programming-and-data-types.html
And as I wrote: "from the information you provided..."
この質問は閉じられています。
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!