MATLAB: Can fzero function be used to solve intersection of step functions

fzero

fzero function can be used to solve non-linear function. But if I have two step functions, can it also be used, since there is no strict solution to this problem. but I would like to find the intersection for x axis is x=1000. Could I use fzero for such situation? thanks.

Best Answer

NO. These are not single valued functions. fzero simply does not apply.
Instead, use a tool like intersections , by Doug Schwarz. Find it on the file exchange.
Related Question