Effacer les filtres
Effacer les filtres

HOW to write cos^2(t) in matlap

234 vues (au cours des 30 derniers jours)
Saad Almalki
Saad Almalki le 18 Juin 2020
HOW to write cos^2(t) in matlap
  2 commentaires
pushpendra pratap singh
pushpendra pratap singh le 18 Déc 2021
cos(t).^2
Stephen23
Stephen23 le 1 Avr 2022
1 - sin^2(t)

Connectez-vous pour commenter.

Réponse acceptée

madhan ravi
madhan ravi le 18 Juin 2020
Modifié(e) : madhan ravi le 18 Juin 2020
t = 0:pi:2*pi;
cos(t).^2 % basic question , start with MATLAB Onramp course

Plus de réponses (2)

Brigid Welch
Brigid Welch le 19 Jan 2022
how to write cos(t)^2
  1 commentaire
Walter Roberson
Walter Roberson le 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

Connectez-vous pour commenter.


Soledad Rodriguez
Soledad Rodriguez le 1 Avr 2022
yb = cos^2 (5x) / x^2
  2 commentaires
Torsten
Torsten le 1 Avr 2022
(cos(5*x)).^2./x.^2
Walter Roberson
Walter Roberson le 1 Avr 2022
Also cos(5*x).^2./x.^2 and (cos(5*x)./x).^2

Connectez-vous pour commenter.

Catégories

En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by