- #1
dkotschessaa
- 1,060
- 783
First note that I am just learning Mat lab, and running a program created by someone else.
I have a program which is displaying four differential equations on screen, all with various parameters assigned in the beginning. i.e.
alpha=10;
beta=0.04;
gamma=0.020;
etc.
For equations of the form:
dy(1) = alpha*y(1)*(1-power(y(1)/y(4),1))-beta*y(1)-gamma*y(3)*y(1);
which are being called from a separate file.
I want to be able to change these parameters interactively somehow to see how it effects the graph. Right now I have to go into the code, change the parameter and run again. Is there a way to do this?
Thanks.
Dave K
I have a program which is displaying four differential equations on screen, all with various parameters assigned in the beginning. i.e.
alpha=10;
beta=0.04;
gamma=0.020;
etc.
For equations of the form:
dy(1) = alpha*y(1)*(1-power(y(1)/y(4),1))-beta*y(1)-gamma*y(3)*y(1);
which are being called from a separate file.
I want to be able to change these parameters interactively somehow to see how it effects the graph. Right now I have to go into the code, change the parameter and run again. Is there a way to do this?
Thanks.
Dave K