# varying gAMPA and gGABAa together

5 views

### Wei, Jingjin

Jun 3, 2019, 5:53:29 PM6/3/19
to DynaSim Users
Hi all,

I have been wondering if it's possible to vary gAMPA and gGABAa together as a set rather than get the combination.
vary = {
'E->I', 'gAMPA', [0.3 0.6];
'I->E', 'gGABAa', [0.3 0.6];
};
This gives out a combination which include the pairs I want, but is there a way to do [0.3 0.3] and [0.6 0.6]? dsVary2Modifications seems to work well when it comes to population but not namespace like  "source->target". Thanks!

Jingjin

### Erik Roberts

Jun 3, 2019, 9:35:24 PM6/3/19
to Wei, Jingjin, DynaSim Users
Here are the ways to covary pairs and specify sets:
```
% Vary two parameters (run a simulation for all combinations of values)
% vary={'E','(EK,ENa)',[-80 -60]}; % checked
%       This sets modifications:
%           * E_EK, E_ENa = -80
%           * E_EK, E_ENa = -60
% vary={'E','(EK,ENa)',[-80 -60; -85 -65]}; % checked
%       This sets modifications:
%           * E_EK = -80 and E_ENa = -85
%           * E_EK = -60 and E_ENa = -65
% vary={'E','(EK,ENa,Iapp)',[-80 -60; -85 -65; 0 1]}; % checked
%       This sets modifications:
%           * E_EK = -80, E_ENa = -85, Iapp = 0
%           * E_EK = -60, E_ENa = -65, Iapp = 1
% vary={'E','(EK,ENa,Iapp)',[-80 -50 -60; -85 -40 -65; 0 2 1]}; % checked
%       This sets modifications:
%           * E_EK = -80, E_ENa = -85, Iapp = 0
%           * E_EK = -50, E_ENa = -40, Iapp = 2
%           * E_EK = -60, E_ENa = -65, Iapp = 1
%
% vary={'(E,I)','(EK,ENa)',[-80 -60]}; % checked
%       This sets modifications:
%           * E_EK, E_ENa, I_EK, I_ENa = -80
%           * E_EK, E_ENa, I_EK, I_ENa = -60
% vary={'(E,I)','(EK,ENa)',[-80 -60; -85 -65]}; % checked
%       This sets modifications:
%           * E_EK, I_EK = -80 and E_ENa, I_ENa = -85
%           * E_EK, I_EK = -60 and E_ENa, I_ENa = -65
% vary={'(E,I)','(EK,ENa)',cat(3,[-80 -60], [-85 -65])}; % checked
%       This sets modifications:
%           * E_EK, E_ENa = -80 and I_EK, I_ENa = -85
%           * E_EK, E_ENa = -60 and I_EK, I_ENa = -65
% vary={'(E,I)','(EK,ENa)',cat(3, [-75 -55; -80 -60], [-85 -65; -90 -70])}; % checked
%       This sets modifications:
%           * E_EK = -75, E_ENa = -80, I_EK = -85, I_ENa = -90.
%           * E_EK = -55, E_ENa = -60, I_EK = -65, I_ENa = -70.
```

--
You received this message because you are subscribed to the Google Groups "DynaSim Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dynasim-user...@googlegroups.com.
To post to this group, send email to dynasi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dynasim-users/BN7PR03MB3633B993C609E5661579A9E4A7140%40BN7PR03MB3633.namprd03.prod.outlook.com.