At some point you’ll find some things need to be done on a case-by-case basis, much like in real life.
In biological systems, there are many ways this can come up. Here are a few examples:
In the last section we learnt how to plug functions into Matlab and how to plot them.
In this section, we learn to use loops as well as plotting results using different variables. Loops are great for repeating the same set of equations or operations. They are great…
Now we learn to write functions in Function form: what we wrote in the last section was a raw script.
a = a + 2 is a function. It consists of an input and an output and may be written as a script (as in the last section) or in function form. The…
This section shows you how to use Matlab and R. The examples in text will be based on Matlab, though the equivalent code for R are found at the end of sections.
It doesn’t matter whether you use R or Matlab for modelling; the logic you use in coding is the same and there are…