Create a function based on some criteria
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Deepro Bardhan
il 17 Set 2021
Commentato: Deepro Bardhan
il 17 Set 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 Commenti
Risposta accettata
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Symbolic Math Toolbox in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!