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