how to solve equation trimf(x, [0 4 10]) = 0.5;

3 vues (au cours des 30 derniers jours)
dinh tai
dinh tai le 5 Fév 2013
how to solve equation trimf(x, [0 4 10]) = 0.5 in matlab?
thanks for help!

Réponse acceptée

Shashank Prasanna
Shashank Prasanna le 5 Fév 2013
>> fminsearch(@(x)(-0.5+trimf(x,[0 4 10])).^2,0)
ans =
2
Confirm:
>> trimf(2,[0 4 10])
ans =
0.5

Plus de réponses (0)

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by