How to define function
Ältere Kommentare anzeigen
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 Kommentare
Rik
am 11 Aug. 2020
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
am 11 Aug. 2020
KSSV
am 11 Aug. 2020
Show us your code.
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Logical finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!