MATLAB: Line intersection without polyfitting intersectionlineMATLABplotpolyfit is it possible to get the values of intersections without Polyfitting the Data? just from the plot itself Best Answer From the plot?! Why would polyfit be useful for finding the intersection of lines? Do you mean the polyxpoly command?Did you ask an internet search engine for "Matlab intersection lines" already? You will find:https://www.mathworks.com/matlabcentral/fileexchange/35606-line-line-intersection--2d-https://www.mathworks.com/help/map/ref/polyxpoly.htmlhttps://www.mathworks.com/matlabcentral/fileexchange/22441-curve-intersectionshttps://blogs.mathworks.com/loren/2011/08/29/intersecting-lines/ Related SolutionsMATLAB: Polyfitting warning I'll take you at your word that you know what you are doing.ws = warning('off','all'); % Turn off warningP = polyfit(x,y,N);warning(ws) % Turn it back on. MATLAB: Polyfitting in for loop Without having your data and just looking at your code, I observe that you havefor n = 1 : 1 : 48...clippedfP2=clippedfP(1,70);...temp = polyfit(clippedfP2 (n,:) ,clippedRatioP12 (n,:) ,1); % least squares fitting to a lineso it appears you are getting a variable clippedfP2 with just one row and then you are indexing into its nth row.Also, in order to get more and better answers, consider editing your submission and putting all the code into "code" format. Related QuestionFind the roots of using matlab Help PleaseHow to calculate the point of intersection of two lines in 3D space
Best Answer