PDA

View Full Version : Intersection of functions in matlab


JohnSimpson
Feb23-10, 09:35 PM
I've run into a problem I have not encountered before. I have a function calculated only at discrete points -- consider it as looking roughly like a Gaussian (is isn't). I need to find the intersection points of this sampled function with a line, namely the line y = 1.

In principle I know how to write code to do this easily enough, but I'm wondering if theres already a one-liner command built into MATLAB for this kind of thing

thanks

-John