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!