Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
SimBiology

Subject: SimBiology

From: Jerry

Date: 16 May, 2013 13:07:08

Message: 1 of 6

Hello,

In SimBiology, I need to show that [A] + [A]--> [2A], however, it seems that I couldn't have two species with the same name.

Thanks,
Jerry
 

Subject: SimBiology

From: Ingrid Tigges

Date: 17 May, 2013 12:38:10

Message: 2 of 6

Dear Jerry,

Which MATLAB release are you using? In MATLAB R2013a for example the following works as reaction
A + A -> 2 A
If 2A should be a new species the reaction would be
A + A -> [2A]
If you have any further questions regarding this, please let me know.

Subject: SimBiology

From: Jerry

Date: 20 May, 2013 17:23:08

Message: 3 of 6

Thank you for your suggestion! I used Matlab 2012b. But based on your recommendation, I just installed Matlab 2013a. Once I created species "A" and I wanted to create another "A", I got this error: "The specified name is being used by another species. Specify a different name."

Thanks,
Jerry

Subject: SimBiology

From: Ingrid Tigges

Date: 21 May, 2013 15:12:09

Message: 4 of 6

Hi Jerry,

I am not sure whether I understand your question precisely.
All references to "A" refer to the same species. Did you try the line of code I mentioned? It does not matter whether you are using MATLAB R2012b or R2013a for this case.

Ingrid

Subject: SimBiology

From: Jerry

Date: 21 May, 2013 18:23:09

Message: 5 of 6

Hello,

Actually, I created a new sbproj file, and I was trying to add the species ("A" and again "A") plus reactions in the model. I didn't try writing of codes in m.file.

Thanks,
Jerry

Subject: SimBiology

From: Arthur Goldsipe

Date: 22 May, 2013 13:33:09

Message: 6 of 6

Hi Jerry,

You can create a reaction "A + A -> [2A]" from either the command-line or from the SimBiology Desktop. In both cases, you only need to create a single species named A.

You cannot never have two species named A in the same compartment of a SimBiology model. But that's ok, because in this reaction, both A's really refer to the same species.

Perhaps it would be clearer if you wrote the reaction as "2 A -> [2A]". This should produce equivalent results.

-Arthur

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us