Borrar filtros
Borrar filtros

Problem with the command solve in matrices

1 visualización (últimos 30 días)
Nuno
Nuno el 1 de Mayo de 2013
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 comentario
Nuno
Nuno el 7 de Mayo de 2013
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.

Iniciar sesión para comentar.

Respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by