using the same varible twice in a calculation

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

Antworten (1)

Wayne King
Wayne King am 30 Nov. 2011

0 Stimmen

a = 1:10;
c =cos(a)./tan(a+20)

Diese Frage ist geschlossen.

Tags

Gefragt:

am 30 Nov. 2011

Geschlossen:

am 20 Aug. 2021

Community Treasure Hunt

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

Start Hunting!

Translated by