필터 지우기
필터 지우기

functions does not appear

조회 수: 1 (최근 30일)
Vasiliki Vasilopoulou
Vasiliki Vasilopoulou 2023년 2월 13일
편집: Matt J 2023년 2월 13일
Hello everybody,
I try to learn how Matlab can be used. I study matlab books and I have problem with functions. When I want to create a Function, the message appearing is " Function definition are not supported in this context. Functions can only be created as local or nested functions in code files".
What's exactly is the problem?
Thank you

답변 (1개)

Matt J
Matt J 2023년 2월 13일
편집: Matt J 2023년 2월 13일
You cannot create non-anonymous functions in the command window. You need to compose them in a .m file. It is recommendable that you use the Matlab Editor for that,
>> edit myFunction.m
See also,

카테고리

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