Filter löschen
Filter löschen

HOW to write cos^2(t) in matlap

234 Ansichten (letzte 30 Tage)
Saad Almalki
Saad Almalki am 18 Jun. 2020
Kommentiert: Walter Roberson am 1 Apr. 2022
HOW to write cos^2(t) in matlap
  2 Kommentare
pushpendra pratap singh
pushpendra pratap singh am 18 Dez. 2021
cos(t).^2
Stephen23
Stephen23 am 1 Apr. 2022
1 - sin^2(t)

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

madhan ravi
madhan ravi am 18 Jun. 2020
Bearbeitet: madhan ravi am 18 Jun. 2020
t = 0:pi:2*pi;
cos(t).^2 % basic question , start with MATLAB Onramp course

Weitere Antworten (2)

Brigid Welch
Brigid Welch am 19 Jan. 2022
how to write cos(t)^2
  1 Kommentar
Walter Roberson
Walter Roberson am 19 Jan. 2022
If t is a scalar, then exactly like you wrote will work, cos(t)^2
If t is a vector or array, you will likely need cos(t).^2

Melden Sie sich an, um zu kommentieren.


Soledad Rodriguez
Soledad Rodriguez am 1 Apr. 2022
yb = cos^2 (5x) / x^2
  2 Kommentare
Torsten
Torsten am 1 Apr. 2022
(cos(5*x)).^2./x.^2
Walter Roberson
Walter Roberson am 1 Apr. 2022
Also cos(5*x).^2./x.^2 and (cos(5*x)./x).^2

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Creating and Concatenating Matrices finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by