Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

using the same varible twice in a calculation

1 vue (au cours des 30 derniers jours)
kevin
kevin le 30 Nov 2011
Clôturé : MATLAB Answer Bot le 20 Août 2021
let say a is 1 to 10
c=cos(a)/tan(a+20)
do u need to day anything to make sure both a is the same? how do u write the code

Réponses (1)

Wayne King
Wayne King le 30 Nov 2011
a = 1:10;
c =cos(a)./tan(a+20)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by