Hamidréza
2013-06-30 20:15:50 UTC
Dear all,
I would like to define an exponential matrix in function of comsol state field variable... for example..
%Definition of matrix function
A=[Tx,0,0;0,Ty,0;0,0,Tz];
% Computation of matrix exponential
B=expm(A);
where,
T as temperature
Tx as \partial T/ \partial x
Ty as \partial T/ \partial y
Tz as \partial T/ \partial z
Matlab can perfectly compute the matrix exponential using expm()... but it uses the matrix form... and the matrix entries are the comsol expressions for me ...
Any idea or suggestion??
Your quick and kind reply is hightly appreciated
Best regards
Hamidréza
I would like to define an exponential matrix in function of comsol state field variable... for example..
%Definition of matrix function
A=[Tx,0,0;0,Ty,0;0,0,Tz];
% Computation of matrix exponential
B=expm(A);
where,
T as temperature
Tx as \partial T/ \partial x
Ty as \partial T/ \partial y
Tz as \partial T/ \partial z
Matlab can perfectly compute the matrix exponential using expm()... but it uses the matrix form... and the matrix entries are the comsol expressions for me ...
Any idea or suggestion??
Your quick and kind reply is hightly appreciated
Best regards
Hamidréza