From: zhang on 6 Aug 2010 19:50 Hi guys How to get the intersection of two lines in matlab? Thanks in advanced. Zhong
From: Matt Fig on 6 Aug 2010 20:00 Many ways. If you have functions, you could do: % Data y1 = @(x) 5.4*x + 3; y2 = @(x) 2.7*x+4; % Engine rt = fzero(@(x)y1(x)-y2(x),5); % Check x = -10:.1:10; plot(x,y1(x),'r',x,y2(x),'b',rt,y1(rt),'*k')
|
Pages: 1 Prev: How to link four points to a quadrangle? Next: Problems saving a simple mat file |