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!