Stringmaker
Mechanical
- Mar 18, 2005
- 513
I have a simple eigenvalue problem I'm needing to solve. I'm using R14. Here is my m-file input:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
syms A E L p
% Stiffness matrix
K = ((A*E)/(15*L))*[35 -40 5;
-40 80 -40;
5 -40 35]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% CONSISTENT MASS METHOD
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Consistent mass matrix
Mc = p*A*L*[2/15 -1/6 7/15;
-1/6 1/3 -1/2;
7/15 -1/2 32/15]
eig(K,Mc)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
When matlab tries to evaluate for the generalized eigenvalues it gives me the dreaded "??? Error using ==> sym.eig Too many input arguments." error. My first suspicion is that it can't handle all of the parameters such as p, A, E, and L that I've premultiplied K and Mc by. Does anyone have a suggestion of what a better approach may be?
Thank you!
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
syms A E L p
% Stiffness matrix
K = ((A*E)/(15*L))*[35 -40 5;
-40 80 -40;
5 -40 35]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% CONSISTENT MASS METHOD
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Consistent mass matrix
Mc = p*A*L*[2/15 -1/6 7/15;
-1/6 1/3 -1/2;
7/15 -1/2 32/15]
eig(K,Mc)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
When matlab tries to evaluate for the generalized eigenvalues it gives me the dreaded "??? Error using ==> sym.eig Too many input arguments." error. My first suspicion is that it can't handle all of the parameters such as p, A, E, and L that I've premultiplied K and Mc by. Does anyone have a suggestion of what a better approach may be?
Thank you!