solving equation in matlab

1 vue (au cours des 30 derniers jours)
Sara
Sara le 28 Août 2012
Hi. I want to find the l and mu , by the code below. I have linked the image that indicates l and mu how they used in equation. Could some one give me some hints , that the could below , could be optimal in speed ? Any suggestions would be appreciated.
disp( 'Identifikation: Berechnung der Faltungsprodukte ...' )
par.x1 = Fcn_myconv2( {v0, v0} ) ;%y0y0
par.x2 = Fcn_myconv2( {v1, v0} ) ;%y1y0
par.x3 = Fcn_myconv2( {v0, -1*time.*v1} ) ;%y1^'y2
par.x4 = Fcn_myconv2( {-1*time.*v0, v1} ) ;%y2^'y1
par.x5 = Fcn_myconv2( {v1, v1} ) ;%y1y1
% Berechnung der Signale
disp( 'Identifikation ...' )
dif.y0 = - 1*Fcn_integ( par.x3, 1, dt ) - 1*Fcn_integ( par.x2, 2, dt ) + 1*Fcn_integ( par.x4, 1, dt ) ;
dif.y1 = - 1*Fcn_integ( par.x5, 0, dt ) ;
dif.y2 = + 1*Fcn_integ( par.x1, 2, dt ) ;
% Integration -- Gleichungssystem
factor1 = zeros( 2, length(v0) ) ;
factor1(1,:) = Fcn_integ( dif.y1, 0, dt ) ;
factor1(2,:) = Fcn_integ( dif.y1, 1, dt ) ;
factor2 = zeros( 2, length(v0) ) ;
factor2(1,:) = Fcn_integ( dif.y2, 0, dt ) ;
factor2(2,:) = Fcn_integ( dif.y2, 1, dt ) ;
rhs = zeros( 2,length(v0) ) ;
rhs(1,:) = Fcn_integ( dif.y0, 0, dt ) ;
rhs(2,:) = Fcn_integ( dif.y0, 1, dt ) ;
% Loesen des Gleichungssystem
x = zeros(length(v0),2) ;
for k = 1:length(v0)
A = [ factor1(:,k) factor2(:,k)];
b = -rhs(:,k);
x(k,:) = A\b ;
end
  1 commentaire
Walter Roberson
Walter Roberson le 28 Août 2012
Link requires a google account to view.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Graph and Network Algorithms dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by