g******s 发帖数: 733 | 1 如果用
b1=a2d(1,:);
b2=a2d(2,:);
a1d(b2~=0)=b1(b2~=0)/b2(b2~=0);
请问有什么办法可以把这三句语句可以合成一句话吗?\
先谢了! | O******e 发帖数: 734 | 2 In the title you mentioned the atan function, but not in your code example.
If you want to calculate atan(y/x) but need to be able to handle cases where
x=0, use the atan2 function, i.e., atan2(y,x). atan2 should be available in
any useful computing environment.
【在 g******s 的大作中提到】 : 如果用 : b1=a2d(1,:); : b2=a2d(2,:); : a1d(b2~=0)=b1(b2~=0)/b2(b2~=0); : 请问有什么办法可以把这三句语句可以合成一句话吗?\ : 先谢了!
|
|