Azzera filtri
Azzera filtri

How to determine roots of a trigonometric equation like 2x-cosx-2=0 ?

7 visualizzazioni (ultimi 30 giorni)
How to determine roots of a trigonometric equation like 2x-cosx-2=0 ?

Risposta accettata

Torsten
Torsten il 27 Giu 2016
fun=@(x)2*x-cos(x)-2;
x0=[0 2];
sol=fzero(fun,x0)
Best wishes
Torsten.

Più risposte (0)

Categorie

Scopri di più su Equations 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!

Translated by