How to wrote theta as a matlab code
22 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Azriel Faiz Abu Fadzil
le 19 Oct 2017
Réponse apportée : RAVI Kumar
le 26 Jan 2021
How to wrote theta as matlab code
for example 2sintheta
0 commentaires
Réponse acceptée
Birdman
le 19 Oct 2017
syms theta
2*sin(theta)
Then by substituting theta with any numeric variable, you can calculate 2*sin(theta)
3 commentaires
Jan
le 20 Fév 2018
@Courtney: "It does not run" does not allow to help you. Please post, what happens instead - perhaps an error message because you do not have the Symbolic Toolbox?
Plus de réponses (2)
James Tursa
le 19 Oct 2017
Modifié(e) : James Tursa
le 19 Oct 2017
E.g.,
theta = pi/4;
result = 2*sin(theta); % <-- if theta is in radians
theta = 45;
result = 2*sind(theta); % <-- if theta is in degrees
0 commentaires
Voir également
Catégories
En savoir plus sur Number Theory 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!