add an equation to a model
model2=addeq(model,position,nameq,txteq,notransf)
* model = a model tlist
* position = either a scalar, indicating where to add the equation or 'bottom' to add it at the bottom of the model or 'top' to add it at the top of the model
* nameq = a string vector, the names of the new equations
* txteq = a string vector, the texts of the new equations
* notransf = an optional argument: if given then the model is not transformed for simulation
* model2 = a model tlist with the given equations added
global GROCERDIR // load the model small load(GROCERDIR+'\data\small.dat') // add the equation 'cb' to the model small, without recalculating all // stuff needed to simulate the model and save the result in a new model // called small2 small2=addeq(small,'bottom','cb','cb=td_p6_d3-td_p7_d3','notransf') | ![]() | ![]() |