solving equation in matlab

조회 수: 1 (최근 30일)
Sara
Sara 2012년 8월 28일
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
Walter Roberson
Walter Roberson 2012년 8월 28일
Link requires a google account to view.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Graph and Network Algorithms에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by