how to assemble a symbolic matrix?

조회 수: 1 (최근 30일)
Clara Sophie
Clara Sophie 2023년 6월 6일
댓글: Clara Sophie 2023년 6월 6일
Hi, so I have to assemble a stiffness matrix with symbolic variables. If I give the variables numbers, the code works but if I try to let it run with the symbolic variables it says sym not convertable to double. Can anyone think of a solution?
Ke is a 10x10 matrix and is assembled by multiple 6x6 matrices so I first set Ke as a matrix of zeros, and then let it be assembled via a loop
  댓글 수: 3
Matt J
Matt J 2023년 6월 6일
Why would you be using symbolic variables? A stiffness matrix is something used in numerical methods for partial differential equations.
Clara Sophie
Clara Sophie 2023년 6월 6일
I have the problem fixed, i just needed to add a 'sym' in my Ke matrix thank you all for trying to help

댓글을 달려면 로그인하십시오.

답변 (0개)

태그

Community Treasure Hunt

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

Start Hunting!

Translated by