MATLAB: The value of the crossing point between two curves the crossing point value How can I determine the exact value for the crossing point between two curves? Please see the attached figure. Best Answer http://blogs.mathworks.com/pick/2011/09/09/detect-curve-intersections-quickly-and-easily/ Related SolutionsMATLAB: What is the difference between the LAR and Bisquare robust option in the Curve Fitting tool 'LAR' specifies the least absolute residual method.'Bisquare' specifies the bisquare weights method.For more detailed information on these two methods please see the following links:Robust Lease SquaresMATLAB Answers post on the differences between the twoMATLAB Answers post on LAR methodRobustfit function from Stat Toolbox which gives more general info and references on rubust fittingWordpress article that discusses these methods MATLAB: Zero-crossing calculation This is reasonably robust:function ZC = ZeroX(x,y)zci = @(v) find(v(:).*circshift(v(:), [-1 0]) <= 0); % Returns Approximate Zero-Crossing Indices Of Argument Vectorzxidx = zci(y);for k1 = 1:numel(zxidx) idxrng = max([1 zxidx(k1)-1]):min([zxidx(k1)+1 numel(y)]); xrng = x(idxrng); yrng = y(idxrng); ZC(k1) = interp1( yrng(:), xrng(:), 0, 'linear', 'extrap' );endendx = linspace(0, 11*pi, 42); % Create Datay = sin(x); % Create DataZC = ZeroX(x,y);figure(1)plot(x, y, '-r')hold onplot(ZC, zeros(size(ZC)), 'pg')hold offgrid Related QuestionHow to find intersection points of two discrete curvesConsecutive Zero Crossings stop
Best Answer