Any help for converting from s-matrix to z-matrix
조회 수: 4 (최근 30일)
이전 댓글 표시
plz can any one help me, i want to make a code to convert from z-matrix to s-matrix and vice versa as below :
[z]= {[u]-[s]}inverse * {[u]+[s]}
[s]= {[z]-[u]} * {[z]+[u]}inverse
s = s-matrix z = normalized impedance matrix u = identity matrix
appreciating your kind help because it's more than urgent for me
댓글 수: 0
답변 (2개)
Chirag Gupta
2011년 7월 21일
I don't know the context, but the code should be simple enough:
% Assume you have S and it is a square matrix
% Create U of the same size
U = eye(length(S));
Z = inv(U-S) * (U+S);
% Assume you have Z and it is a square matrix
% Create U of the same size
U = eye(length(Z));
S = (Z-U) * inv(Z+U);
댓글 수: 0
Andrei Bobrov
2011년 7월 21일
U = eye(size(S));
Z = (U-S)\(U+S);
U = eye(size(Z));
S = (Z-U)/(Z+U);
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Shifting and Sorting Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!