How to define function
이전 댓글 표시
Hello!
Could you, please, suggest an answer:
How to define function f (x), which for x from -1 to 1, f (x) = 1; and outside these limits f (x) = 0.
Thank in advance!
댓글 수: 3
Rik
2020년 8월 11일
This is your homework. What have you tried so far? And do you want a normal (or anonymous) function, or a symbolic function?
Viktoriia Buliuk
2020년 8월 11일
KSSV
2020년 8월 11일
Show us your code.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!