solving function from different formula
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Nimbuzz Kurodo
le 5 Oct 2021
Modifié(e) : Nimbuzz Kurodo
le 5 Oct 2021
find x value from 3 different value of formula
0 commentaires
Réponse acceptée
Walter Roberson
le 5 Oct 2021
Example
part1 = @(x) (x < 2).*(4*sqrt(x) + 2)
part2 = @(x) (x >= 2 & x <= 5).*(3*x - 1)
part3 = @(x) (x > 5) .* 5./x;
y = @(x) part1(x) + part2(x) + part3(x);
fplot(y, [0 10])
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Startup and Shutdown dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!