teem
Junior Member level 1

Dear All:
I am new to ocean script. I am using foreach loop to change the value of a variable, run the simulation and calculate the output which is a single value. Codes are like below
Now I want to plot output vs. input, i.e., Y axis is voutAt10ns and X axis is (1 3 5). Could anyone tell me how to do that?
Thank you very much.
I am new to ocean script. I am using foreach loop to change the value of a variable, run the simulation and calculate the output which is a single value. Codes are like below
foreach(i ‘(1 3 5)
desVar(“variable” i)
run()
voutAt10ns=value(VT(“/vp”) 10n) ;one value for each condition
)
desVar(“variable” i)
run()
voutAt10ns=value(VT(“/vp”) 10n) ;one value for each condition
)
Now I want to plot output vs. input, i.e., Y axis is voutAt10ns and X axis is (1 3 5). Could anyone tell me how to do that?
Thank you very much.