What is syntax of Kronecker Delta in MATLAB Version R2013a

12 ビュー (過去 30 日間)
YOGESHWARI PATEL
YOGESHWARI PATEL 2017 年 1 月 2 日
コメント済み: Torsten 2022 年 3 月 14 日
As per suggestion i wrote the following code but still it is showing the error "double type error". for i=1:1:n+5 C1(1,1)=0.030792+0.009208; C1(i,1)=(0.009208*((-0.00000588235)^(i-1))/factorial(i-1));
end
for j=1:1:n+1 for i=1:1:n+1 C1(i,j+1)=(a*i*C1(i+1,j)-b*C1(i,j)+c*(C2(i,j)-C1(i,j))+D1*i*(i+1)*C1(i+2,j))+kroneckerDelta(i-0,j-0)/j;
end
end

回答 (1 件)

Torsten
Torsten 2017 年 1 月 2 日
編集済み: Torsten 2017 年 1 月 2 日
From the documentation:
"For kroneckerDelta with numeric inputs, use the eq function instead."
Best wishes
Torsten.
  4 件のコメント
Fei Ran Li
Fei Ran Li 2022 年 3 月 14 日
Hi what does "double" do here
Torsten
Torsten 2022 年 3 月 14 日
Convert logical to double ?
Maybe since eq(i,j) is 0 or 1, conversion is not needed.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by