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

답변 (1개)

Wayne King
Wayne King 2011년 11월 30일

0 개 추천

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

이 질문은 마감되었습니다.

태그

질문:

2011년 11월 30일

마감:

2021년 8월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by