Last change
on this file was
17,
checked in by zhangj, 10 years ago
|
To have a stable version on the server.
|
-
Property svn:executable set to
*
|
File size:
402 bytes
|
Rev | Line | |
---|
[17] | 1 | function str = plusprochereson(pt,tab) |
---|
| 2 | % function str = plusprochereson(pt,tab) |
---|
| 3 | % Cherche la droite definie dans tab la plus proche du point pt |
---|
| 4 | |
---|
| 5 | d= []; |
---|
| 6 | for k=1:size(tab,1) |
---|
| 7 | d(k) = dist_point_droite(tab(k,1),tab(k,2),tab(k,3), pt); |
---|
| 8 | end |
---|
| 9 | [a ai]=min(d); |
---|
| 10 | k=ai; |
---|
| 11 | |
---|
| 12 | str = sprintf('%d fx + %d fz = %d', tab(k,1), tab(k,2), tab(k,3)); |
---|
| 13 | fprintf('Resonance: %d fx + %d fz = %d\n', tab(k,1), tab(k,2), tab(k,3)); |
---|
Note: See
TracBrowser
for help on using the repository browser.