- #1
sara_87
- 763
- 0
Homework Statement
I have two functions in MATLAB that return y1 and y2 as the solutions and both functions depend on x.
I plotted them on the same graph and there is a gap between the graphs as expected (i.e they are not on top of each other).
Now, what i want to do is find the difference between these graphs.
Homework Equations
The Attempt at a Solution
If the function for y1 is called f1 and that of y2 is called f2. i get an error if i do:
a=f1-f2
so, how can i find the difference?
thank you