Why did I get different results by using degree/radiance as the unit in the integration?
3 visualizaciones (últimos 30 días)
Shuangfeng Jiang el 23 de Jun. de 2020
today I wonder if the unit (degree/radiance) of integration variable matters in Matlab, so I tried these 2 peices of codes:
x_tst=0:0.1:180; % in degree
x_tst_rad=x_tst_deg./180.*pi;% in radiance
As you can see, the results are different, could someone tell me why we have this problem in MATLAB?
Must we use radiance as the unit of angle in Matlab (especially in the integration)?
What if I would like to adopt 'degree' as the unit of the integration variable?