필터 지우기
필터 지우기

Problem with the command solve in matrices

조회 수: 1 (최근 30일)
Nuno
Nuno 2013년 5월 1일
Problem:
syms w;
D=sym('D', [4 n])
Z1=Z*D(:,1)
F3=ones(4,1)
V=solve(Z1==(1/(m*w^2-i*w*c))*F3,D(:,1))
%m and c are constants; Z is a matrix 4x4 with the variable w in it; n=constant.
My objective is getting the values of D(:,1), i.e., getting D1_1, D2_1, D3_1 and D4_1, but with that formulation I'm getting a message "Warning: Explicit solution could not be found.", and I'm not able to resolve it.
  댓글 수: 1
Nuno
Nuno 2013년 5월 7일
I forgot that the Z matrix has not one, but two variables, y1 and w, for n=3 (for example).
Where, y(1,n)=sym(['y',num2str(n)]);
And Z =
[1,1,0,0]
[0,0,-1,-1]
[exp((30650000^(1/2)*((w^4)^(1/2) + w^2)^(1/2)*308151*i)/766250000)*exp((308151*(30650000*(w^4)^(1/2) - 30650000*w^2)^(1/2))/766250000), exp(-(30650000^(1/2)*((w^4)^(1/2) + w^2)^(1/2)*308151*i)/766250000)*exp(-(308151*(30650000*(w^4)^(1/2) - 30650000*w^2)^(1/2))/766250000), y1*exp((30650000^(1/2)*((w^4)^(1/2) + w^2)^(1/2)*308151*i)/766250000)*exp((308151*30650000^(1/2)*((w^4)^(1/2) - w^2)^(1/2))/766250000), y1*exp(-(30650000^(1/2)*((w^4)^(1/2) + w^2)^(1/2)*308151*i)/766250000)*exp(-(308151*30650000^(1/2)*((w^4)^(1/2) - w^2)^(1/2))/766250000)]
[y1*exp((30650000^(1/2)*((w^4)^(1/2) + w^2)^(1/2)*308151*i)/766250000)*exp((308151*30650000^(1/2)*((w^4)^(1/2) - w^2)^(1/2))/766250000), y1*exp(-(30650000^(1/2)*((w^4)^(1/2) + w^2)^(1/2)*308151*i)/766250000)*exp(-(308151*30650000^(1/2)*((w^4)^(1/2) - w^2)^(1/2))/766250000), -exp((30650000^(1/2)*((w^4)^(1/2) + w^2)^(1/2)*308151*i)/766250000)*exp((308151*30650000^(1/2)*((w^4)^(1/2) - w^2)^(1/2))/766250000), -exp(-(30650000^(1/2)*((w^4)^(1/2) + w^2)^(1/2)*308151*i)/766250000)*exp(-(308151*30650000^(1/2)*((w^4)^(1/2) - w^2)^(1/2))/766250000)]
Sorry for my mistake.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Linear Algebra에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by