필터 지우기
필터 지우기

I don't know how to fix this, and I honestly don't know what caused this with chebfun

조회 수: 1 (최근 30일)

채택된 답변

Stephen23
Stephen23 2024년 2월 13일
편집: Stephen23 2024년 2월 13일
"...I honestly don't know what caused this with chebfun"
You modified the function (perhaps accidentally) by adding some code outside of the function definition. By doing so you turn the Mfile into a script (which of course cannot be called like a function with input arguments).
"I don't know how to fix this..."
Remove any code that you added outside of the function definition. Users sometime do this accidentally at the very start of a function help when opening in the editor or when copy-pasting a function from somwhere, e.g.:
ooops % <- this turns the Mfile into a script!
% My wonderful function cannot be called :(
function myfun(inp)
..
end
If you are unable to find and remove your extra code then just download that function again.
  댓글 수: 2
Isaiah
Isaiah 2024년 2월 13일
First of all I just want to say thank you, and while I kind of understand what you were saying here, I can't seem to find what the supposed extra code is. You also suggeseted re-downloading the function and I was wondering how to do that.
Stephen23
Stephen23 2024년 2월 13일
"You also suggeseted re-downloading the function and I was wondering how to do that."
Go to the place where you got that function from ... and get a new copy. For example, from here:

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by