my code is having a command as given below
xnew=trimr(mini,maxi,xnew)
how does this command work. while running the code there is no error, but when trimr function is separately run in the command window, it is displayed as an undfined function

답변 (2개)

Akshat
Akshat 2025년 1월 29일

0 개 추천

The function "trimr" does not exist as an inbuilt function in MATLAB.
The reason why the code does not give an error might be because it has a declaration of a function with the name "trimr". Please refer to the codebase you have, you should find the function.
Hope this helps!
Walter Roberson
Walter Roberson 2025년 1월 29일

0 개 추천

It is a local function, declared as a second function inside a .m file. As such it is not directly callable outside of the .m file.
In order to be callable outside of the .m file it is inside, the first function in the .m file would have to create a handle to the trimr function and pass out the handle.

카테고리

도움말 센터File Exchange에서 MATLAB에 대해 자세히 알아보기

제품

태그

질문:

2019년 1월 10일

답변:

2025년 1월 29일

Community Treasure Hunt

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

Start Hunting!

Translated by