Matlab: an angle expressed in radians, spanning two full revolutions

OP #6470153
Lesenswert?

Hallo,

ich wollte in Matlab folgender Punkt ausführen:

The vector theta will represent an angle expressed in radians, spanning 
two full revolutions. We will use this vector in the following 
sub-section.

>> theta = -2\*pi:pi/10:2\*pi;
=======================

Nach der Eingabe des Ausdrucks in Matlab sieht die Ausgabe so aus:

>> theta = -2\*pi:pi/10:2\*pi;
theta = -2\*pi:pi/10:2\*pi;
           ↑
           Error: Invalid use of operator.

(Comment: im Matlabs Command-Window das ↑Error steht unter dem ersten * 
-Zeichen, welches vor dem ersten pi)

Was ist hier falsch? wie macht man das richtig?

Antwort schreiben

Bitte melde dich an, um einen Beitrag zu schreiben.

oder

Mit Google-Account einloggen

Die Registrierung ist kostenlos und dauert nur eine Minute.

Jetzt registrieren