をK=5
とし、alpha = 1:0.5:10
とする。MATLAB:なぜacosを使用して複素数を得るのですか?
私のコードは次のとおりです。
cos_theta_0 = -1./(2.*alpha)+sqrt(1.+1./(4.*alpha.^2));
theta_0 = acos(cos_theta_0);
for h = 1:(K-2)
cos_theta(h,:)= cos_theta_0 - h.*log(2);
theta(h,:)= acos(cos_theta(h,:));
end
私はcomplex double
として変数theta
を取り戻すのはなぜ?
「alpha」の*実際の値は何ですか? – Suever
Matlabの優れた文書では、 'acos'に' [-1,1] 'の外側に引数を与えているので、? –
'alpha'は1から10までの19値からなる配列で、0.5ステップの@Suever – ElenaPhys