Population Names & Equations

2 views
Skip to first unread message

Ben Polletta

unread,
Apr 30, 2019, 5:18:46 PM4/30/19
to DynaSim Users
Hi all,

Quick question: does anyone know if it's possible to assign a different name to a population than the name given in the .pop file?

E.g.,

spec.population.equations = 'HH';

Thanks!

Ben

Jason Sherfey

unread,
Apr 30, 2019, 5:26:00 PM4/30/19
to Ben Polletta, DynaSim Users
Hi Ben,

Yes, that should work if you change the field to "populations", like this:

>> spec.populations.equations = 'HH';
>> spec.populations.name = 'HHpop1';

>> spec = dsCheckSpecification(spec);
>> spec.populations

ans = 

  struct with fields:

              name: 'HHpop1'
              size: 1
         equations: 'dV/dt=(@current+Iapp)./Cm;  V(0)=-65*ones(1,N_pop); Cm=+1.00000000; Iapp=+0.00000000;'
    mechanism_list: {1×3 cell}
        mechanisms: [1×3 struct]
        parameters: {'Cm'  [1]  'Iapp'  [0]}
      conditionals: []
          monitors: []
             model: []

--
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/CAMnPXbzRN2Cxzb--z9TWrg38oAyq7w_JB%3DewMYZc0EHnDU8qgQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages