フィルターのクリア

Integrating a matrix with symbolic values

10 ビュー (過去 30 日間)
Lars Smit
Lars Smit 2018 年 10 月 24 日
回答済み: Areej Varamban Kallan 2018 年 10 月 31 日
For a finite element method I have to perform a double integration to find the stiffness matrix. First using a function 'matrices' I set up the matrix 'stiffness'. This is an 8x8 matrix with the ymbolic values of 's' and 't' in it. I would then like to integrate w.r.t to both variables over a region of -1 to 1.
D = E*[1,v,0;
v,1,0;
0,0,0.5*(1-v)];
x6 = [0 1 2 0];
y6 = [0 0 2 1];
syms s
syms t
[J,A,M,B] = matrices(s,t,x6,y6);
stiffness = te*transpose(B)*D*B*det(J);
stuff = @(s,t) stiffness
K = integral2(stuff,-1,1,-1,1)
This gives me the following error: Input function must return 'double' or 'single' values. Found 'sym'.
How can I integrate this matrix with symbolic values?

回答 (1 件)

Areej Varamban Kallan
Areej Varamban Kallan 2018 年 10 月 31 日
Hi Lars,
Please see the answer in this link to understand the method of performing double integration on symbolic arrays.

カテゴリ

Help Center および File ExchangeSymbolic Math Toolbox についてさらに検索

製品


リリース

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by