Invalid expression. When calling...

1 visualizzazione (ultimi 30 giorni)
Liam Sullivan
Liam Sullivan il 9 Gen 2020
Commentato: Liam Sullivan il 15 Gen 2020
I have a code that says
Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.
when i am trying to type cos^2(x/2). Also, i have defined x as pi/6.

Risposta accettata

Walter Roberson
Walter Roberson il 9 Gen 2020
cos(x/2)^2

Più risposte (0)

Categorie

Scopri di più su Get Started with MATLAB in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by