Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

ADS expression / AEL script for assigning a variable from matrix

Status
Not open for further replies.

fred3991

Member level 1
Joined
Nov 26, 2020
Messages
33
Helped
0
Reputation
0
Reaction score
0
Trophy points
6
Activity points
615
Hello, everyone!

Is there an option in ADS to assign a variable a value from a matrix?



1641868214157.png


(1) I have two 3x3 matrices var1 and var2

(2) I need to multiply them and get the result

(3) I need to assign the value of S21 Re as index (1,1) from the ResultMatrix (3x3).
(This is just an example, I know that 1*1*w is nonsense for S21 Re)

But when I do this, I get the error
"Undefined function `ResultMatrix()' ( used by expression `S_21_Re' defined in the subcircuit `test')."

I think it's because ADS thinks ResultMatrix is a function and (1,1) are arguments.

How do I assign a variable value from the matrix index here?
Maybe I should use some AEL script? If so, can you show me some example?
And are there any other options on how to solve my problem, can you tell me please?

Thank you!
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top