フィルターのクリア

Error in my FEM Matlab code. Please help

3 ビュー (過去 30 日間)
Virajan Verma
Virajan Verma 2018 年 10 月 4 日
コメント済み: Torsten 2018 年 10 月 4 日
for i=1:2
fepsn(i)=i;
end
%%Loop for epsilon values
for icounter=1:2
epsn=fepsn(icounter)
end
%%Shape function for axial effect
N1(epsn)=(-1/2)*epsn*(1-epsn)
N2(epsn)=(1+epsn)*(1-epsn)
N3(epsn)=(1/2)*epsn*(1+epsn)
syms epsn
%%First Derivatives of Shape Function
N1=diff(N1(epsn),epsn) (Error here)
N2=diff(N2(epsn),epsn)
N3=diff(N3(epsn),epsn)
%%%%Second Derivatives of Shape Function
N11=diff(N1(epsn));
N22=diff(N2(epsn));
N33=diff(N3(epsn));
  8 件のコメント
Virajan Verma
Virajan Verma 2018 年 10 月 4 日
I have removed it now. But error is there as stated in my previous comment
Torsten
Torsten 2018 年 10 月 4 日
syms epsn N1(epsn) N2(epsn) N3(epsn)
N1(epsn) = (-1/2)*epsn*(1-epsn);
N2(epsn) = (1+epsn)*(1-epsn);
N3(epsn) = (1/2)*epsn*(1+epsn);
DN1 = diff(N1,epsn);
DN2 = diff(N2,epsn);
DN3 = diff(N3,epsn);
D2N1 = diff(DN1,epsn);
D2N2 = diff(DN2,epsn);
D2N3 = diff(DN3,epsn);

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

回答 (1 件)

KSSV
KSSV 2018 年 10 月 4 日
Refer PDE tool box.
The above book is the best for FEM using MATLAB.

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by