필터 지우기
필터 지우기

how to define a function inside a script so that I wont need to redefine local variables/tables to the function?

조회 수: 1 (최근 30일)
Assume I have table a and parameter b in the matlab script and I define function:calcfun() at the end of the script. I recieve error:" Undefined function or variable a" when I define calcfun(). Is there any way to define the fucntion without giving the local variables/tables as input?
I assumed local variables/tables of a script can be used in its function.

답변 (1개)

Matt J
Matt J 2019년 10월 22일

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by