finding state transition matrix-regd.

4 次查看(过去 30 天)
srihari
srihari 2012-11-28
hello every one i have a matrix A as syms t A=[-1 0;exp(-3*t) 0] i tried to find the state transition matrix by using
function [phi] = statetrans(A) t = sym('t'); phi = expm(A * t); end But came up with an error showing
??? function [phi] = statetrans(A) ??? Undefined function or method 'statetrans' for input arguments of type 'sym'. | Error: Function definitions are not permitted in this context
Then i replaced t with r in matrix A
But i didnot get the result but showed an error of
??? function [phi] = statetrans(A)
|
Error: Function definitions are not permitted in this context
Please help me guys..........

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Get Started with Symbolic Math Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by