MATLAB Answers

0

Problem with square root of matrix calculation; where matrix includes symbolic variable.

Asked by Amit Kumar on 30 May 2019
Hi,
I am evaluating the square root of a matrix. The matrix includes a symbolic variable.
The matlab code is written as below:
R = [200, 0, 0, 0;
0, 200, 0, 0;
0, 0, 200, 0;
0, 0, 0, 200]
L = [7.78e-10, 4.38e-10, 2.66e-10, 1.72e-10;
4.38e-10, 7.42e-10, 4.2e-10, 2.58e-10;
2.66e-10, 4.2e-10, 7.34e-10, 4.2e-10;
1.72e-10, 2.58e-10, 4.2e-10, 7.42e-10]
C = [2.64e-13, -1.5e-13, -7.26e-15, -3.08e-15;
-1.5e-13, 3.6e-13, -1.48e-13, -5.7e-15;
-7.26e-15, -1.48e-13, 3.6e-13, -1.46e-13;
-3.08e-15, -5.7e-15, -1.46e-13, 3.4e-13]
syms s
sZ = R +s*L
sY = s*C
sYZ = sY*sZ
square_root_sYZ = sqrtm(sYZ)
As I run this, no output is coming for the last step i.e. square_root_sYZ = sqrtm(sYZ), even after the simulation goes on for hours.
Kindly suggest possible or alternative solution to this problem.
Thanks in advance!!

  0 Comments

Sign in to comment.

0 Answers