- Index
- » Users
- » abdo227
- » Profile
Posts
Posts
What if I need the variable 'x' to be independent of time ?
I appreciate your feedback, however I am looking to plot the evolution of y over values of x from 0 to 10 for example (y=f(x)) and not just solve the equation. So I should probably define the range of values for x. Is that doable ?
model Linear
parameter Real a=2;
parameter Real b=1;
Real y;
Real x;
equation
y=a*x + b;
end Linear;
Is there an alternative to using time ? It is very important for me to use two variables independent of time...
What should I add to make this work. I know that this needs one more equation where I need to define the range x maybe ? Any help would be appreciated. Thank you in advance.
model Plot
Real y;
Real x;
equation
y=x;
end Plot;
- Index
- » Users
- » abdo227
- » Profile