필터 지우기
필터 지우기

why is this function not working?

조회 수: 2 (최근 30일)
Nithish kannan
Nithish kannan 2023년 5월 14일
편집: Walter Roberson 2023년 5월 14일

답변 (2개)

Harsh Mahalwar
Harsh Mahalwar 2023년 5월 14일
편집: Harsh Mahalwar 2023년 5월 14일
Hey Nithish,
In order to call a function, you don't need to write "function" in front of it. You can simply call a function with this format:
[variable which will store the value returnded by the function] = [function name]([function parameters])
If you have to learn more about functions you can checkout this documentation.

Walter Roberson
Walter Roberson 2023년 5월 14일
편집: Walter Roberson 2023년 5월 14일
If you are trying to create a function named update for the purpose of processing callbacks for the slider, then you will need to create the function inside a .m file. The only kind of functions that can be created at the command line are:
  • anonymous functions
  • symbolic functions
  • inline functions

카테고리

Help CenterFile Exchange에서 Function Creation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by