Info

此问题已关闭。 请重新打开它进行编辑或回答。

using the same varible twice in a calculation

1 次查看(过去 30 天)
kevin
kevin 2011-11-30
关闭: MATLAB Answer Bot 2021-8-20
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
a = 1:10;
c =cos(a)./tan(a+20)

标签

Community Treasure Hunt

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

Start Hunting!

Translated by