Create a function based on some criteria
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Deepro Bardhan
am 17 Sep. 2021
Kommentiert: Deepro Bardhan
am 17 Sep. 2021
Suppose I want to create a function :
y=x^2 for x>5
x^3 for 0<x<=5
-1 for x<0
How to implement this in matlab without using fucntion?
Can it be done in single statement so that I can plot this or use in other functions?
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Symbolic Math Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!