How to plug in values to symbolic variables and update the matrix?
26 views (last 30 days)
Show older comments
Hello,
I am not sure if this is a stupid question but I need some help with plugging in values to variables. I made some matrices with some symbolic variables.
eg:
syms lambda mu
T = [ lambda mu 0 0 0 0;
-mu lambda 0 0 0 0;
0 0 1 0 0 0;
0 0 0 lambda mu 0;
0 0 0 -mu lambda 0;
0 0 0 0 0 1]
and this matrix T is refered in another calculation
P = transpose(T)*k*T
I want to sub in the values for lambda and mu and update values of T and P. I havent had much luck finding a solution.
Regards,
0 Comments
Accepted Answer
More Answers (1)
See Also
Categories
Find more on Symbolic Math Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!