フィルターのクリア

syntax to multiply two by two matrices with zeros in it with numbers

1 回表示 (過去 30 日間)
segun
segun 2014 年 7 月 11 日
編集済み: James Tursa 2014 年 7 月 11 日
Can anyone help with the correct syntax to implement the line with B1 = .. .When I tried to run this it showed me:??? Subscript indices must either be real positive integers or logicals. They are all two by two matrices some with zeros in them .Below is a sample of what I meant:
Zl=104.5 ; Zg=100;
P1 =[P111 P112; P121 P122];
Q1=[Q111 Q112; Q121 Q122];
V=[V11 V12 ; V21 V22];
Q2=[Q211 Q212 ; Q221 Q222];
P2 = [P211 P212; P221 P222];
W1 = P1*Q1*V*Q2*P2;
W1 = [W1(1,1) W1(1,2) ; W1(2,1) W1(2,2)];
B1 = Zl(Zl*W1(1,1) + W1(1,2) + Zg*Zl*W1(2,1) + Zg*W1(2,2));
I=(Zg + Zl) / B1;
dsisp(I1);
  1 件のコメント
David Sanchez
David Sanchez 2014 年 7 月 11 日
If you edit your code, we can read it easier and provide a possible solution. it almost impossible to follow as it is presented in your question.

サインインしてコメントする。

採用された回答

dpb
dpb 2014 年 7 月 11 日
You've written
B1 = Zl(Zl*W1(1,1) + W1(1,2) + Zg*Zl*W1(2,1) + Zg*W1(2,2));
That's trying to use the expression
Zl*W1(1,1) + W1(1,2) + Zg*Zl*W1(2,1) + Zg*W1(2,2)
as the subscript for Z1. Undoubtedly this is not what you mean, but since the Mind Reading Toolbox release has been delayed yet again, we've no tools to decipher what you might actually want instead.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by