°æ¿éµ¼º½
ÕýÔÚ¼ÓÔØÖÐ...
¿Í»§¶ËAPPÏÂÔØ
ÂÛÎĸ¨µ¼
µ÷¼ÁС³ÌÐò
怬
×¢²á
Ìû×Ó
Ìû×Ó
Óû§
±¾°æ
Ó¦¡¶ÍøÂ簲ȫ·¨¡·ÒªÇó£¬×Ô2017Äê10ÔÂ1ÈÕÆð£¬Î´½øÐÐʵÃûÈÏÖ¤½«²»µÃʹÓû¥ÁªÍø¸úÌû·þÎñ¡£Îª±£ÕÏÄúµÄÕʺÅÄܹ»Õý³£Ê¹Óã¬Ç뾡¿ì¶ÔÕʺŽøÐÐÊÖ»úºÅÑéÖ¤£¬¸ÐлÄúµÄÀí½âÓëÖ§³Ö£¡
24СʱÈÈÃŰæ¿éÅÅÐаñ
>
ÂÛ̳¸üÐÂÈÕÖ¾
(4808)
>
¿¼ÑÐ
(976)
>
µ¼Ê¦ÕÐÉú
(691)
>
³æÓÑ»¥Ê¶
(369)
>
ÐÝÏйàË®
(172)
>
ÎÄÏ×ÇóÖú
(143)
>
»ù½ðÉêÇë
(137)
>
˶²©¼ÒÔ°
(58)
>
½Ìʦ֮¼Ò
(46)
>
¿¼²©
(45)
>
²©ºóÖ®¼Ò
(43)
>
ÕÐÆ¸ÐÅÏ¢²¼¸æÀ¸
(34)
>
ÂÌÉ«ÇóÖú(¸ßÐüÉÍ)
(22)
>
΢Ã׺ÍÄÉÃ×
(19)
>
ÕÒ¹¤×÷
(19)
>
ÂÛÎÄͶ¸å
(17)
Сľ³æÂÛ̳-ѧÊõ¿ÆÑл¥¶¯Æ½Ì¨
»
¼ÆËãÄ£ÄâÇø
»
·ÂտģÄâ
»
MATLAB
»
matllabÖпռäÔ²ÈçºÎÄâºÏ£¿
5
1/1
·µ»ØÁбí
²é¿´: 4717 | »Ø¸´: 9
Ö»¿´Â¥Ö÷
@ËûÈË
´æµµ
лظ´ÌáÐÑ
(ºöÂÔ)
ÊÕ²Ø
ÔÚAPPÖв鿴
µ±Ç°Ö»ÏÔʾÂú×ãÖ¸¶¨Ìõ¼þµÄ»ØÌû£¬µã»÷ÕâÀï²é¿´±¾»°ÌâµÄËùÓлØÌû
zhhhero
ͳæ
(³õÈëÎÄ̳)
Ó¦Öú: 0
(Ó×¶ùÔ°)
½ð±Ò: 137.9
Ìû×Ó: 25
ÔÚÏß: 16.8Сʱ
³æºÅ: 1201795
×¢²á: 2011-02-11
ÐÔ±ð: GG
רҵ: ͳ¼ÆÑ§ÆäËûѧ¿Æ
[
ÇóÖú
]
matllabÖпռäÔ²ÈçºÎÄâºÏ£¿
Çó´óÏÀ£¬°ï棬ÈçºÎÔÚmatlabÖÐ×îС¶þ³Ë·¨ÄâºÏ¿Õ¼äÔ²£¬Çó³öÔ²ÐÄ£¬°ë¾¶¡£×îºÃÓÐmatlab³ÌÐò£¬Ð»Ð»
»Ø¸´´ËÂ¥
» ²ÂÄãϲ»¶
306Çóµ÷¼Á
ÒѾÓÐ5È˻ظ´
284Çóµ÷¼Á
ÒѾÓÐ4È˻ظ´
ѰÕÒµ÷¼Á
ÒѾÓÐ4È˻ظ´
Ò»Ö¾Ô¸ÖÐÄÏ»¯Ñ§£¨0703£©×Ü·Ö337Çóµ÷¼Á
ÒѾÓÐ10È˻ظ´
324Çóµ÷¼Á
ÒѾÓÐ6È˻ظ´
Ò»Ö¾Ô¸ Î÷±±´óѧ £¬070300»¯Ñ§Ñ§Ë¶£¬×Ü·Ö287£¬Ë«·ÇÒ»±¾£¬Çóµ÷¼Á¡£
ÒѾÓÐ3È˻ظ´
289Çóµ÷¼Á
ÒѾÓÐ7È˻ظ´
319Çóµ÷¼Á
ÒѾÓÐ4È˻ظ´
298Çóµ÷¼ÁÒ»Ö¾Ô¸211
ÒѾÓÐ3È˻ظ´
Çóµ÷¼ÁÒ»Ö¾Ô¸º£´ó£¬0703»¯Ñ§Ñ§Ë¶304·Ö£¬Óдó´´ÏîÄ¿£¬Ëļ¶Òѹý
ÒѾÓÐ8È˻ظ´
» ±¾Ö÷ÌâÏà¹Ø¼ÛÖµÌùÍÆ¼ö£¬¶ÔÄúͬÑùÓаïÖú:
¡¾ÇóÖú¡¿ÄÄ¿îÈí¼þ¿ÉÒÔÄâºÏPbnm¿Õ¼äȺ£¿
ÒѾÓÐ3È˻ظ´
ѧµ½ÀÏ£¬»îµ½ÀÏ
1Â¥
2013-05-01 23:54:25
ÒÑÔÄ
»Ø¸´´ËÂ¥
¹Ø×¢TA
¸øTA·¢ÏûÏ¢
ËÍTAºì»¨
TAµÄ»ØÌû
dbb627
ÈÙÓþ°æÖ÷
(ÖøÃûдÊÖ)
ר¼Ò¾Ñé: +4
·ÂÕæEPI: 6
Ó¦Öú: 289
(´óѧÉú)
¹ó±ö: 0.589
½ð±Ò: 24640.4
É¢½ð: 551
ºì»¨: 61
ɳ·¢: 1
Ìû×Ó: 1246
ÔÚÏß: 1794.8Сʱ
³æºÅ: 149791
×¢²á: 2005-12-29
ÐÔ±ð: GG
רҵ: ÎÛȾ¿ØÖÆ»¯Ñ§
¹ÜϽ:
¼ÆËãÄ£Äâ
¡¾´ð°¸¡¿Ó¦Öú»ØÌû
¡ï
¸Ðл²ÎÓ룬ӦÖúÖ¸Êý +1
xiegangmai: ½ð±Ò+1, лл²ÎÓ룡
2013-05-02 23:10:45
¿Õ¼äÔ²µÄµã±ØÈ»¹²Ã棬½«¿Õ¼ä×ø±êתµ½Æ½Ãæ×ø±êÏ£¬ÄâºÏºóÔÙת»ØÈ¥¡£
ÔÞ
Ò»ÏÂ
»Ø¸´´ËÂ¥
¸ß¼¶»Ø¸´
The more you learn, the more you know, the more you know, and the more you forget. The more you forget, the less you know. So why bother to learn.
4Â¥
2013-05-02 10:23:35
ÒÑÔÄ
»Ø¸´´ËÂ¥
¹Ø×¢TA
¸øTA·¢ÏûÏ¢
ËÍTAºì»¨
TAµÄ»ØÌû
²é¿´È«²¿ 10 ¸ö»Ø´ð
change0618
Ìú¸Ëľ³æ
(ÖøÃûдÊÖ)
·½ÕÉ´óʦ
Ó¦Öú: 44
(СѧÉú)
½ð±Ò: 17724.5
ºì»¨: 17
Ìû×Ó: 2413
ÔÚÏß: 546.7Сʱ
³æºÅ: 496517
×¢²á: 2008-01-19
רҵ: »¯Ñ§·´Ó¦¹¤³Ì
¡¾´ð°¸¡¿Ó¦Öú»ØÌû
¡ï ¡ï
¸Ðл²ÎÓ룬ӦÖúÖ¸Êý +1
xiegangmai: ½ð±Ò+2, лл²ÎÓ룡
2013-05-02 23:10:37
¿ÉÒÔÈ¥matlab AppÖÐÐÄÏÂÔØ
CODE:
function [xc,yc,R,a] = circfit(x,y)
%
% [xc yx R] = circfit(x,y)
%
% fits a circle in x,y plane in a more accurate
% (less prone to ill condition )
% procedure than circfit2 but using more memory
% x,y are column vector where (x(i),y(i)) is a measured point
%
% result is center point (yc,xc) and radius R
% an optional output is the vector of coeficient a
% describing the circle's equation
%
% x^2+y^2+a(1)*x+a(2)*y+a(3)=0
%
% By: Izhak bucher 25/oct /1991,
x=x(:); y=y(:);
a=[x y ones(size(x))]\[-(x.^2+y.^2)];
xc = -.5*a(1);
yc = -.5*a(2);
R = sqrt((a(1)^2+a(2)^2)/4-a(3));
CODE:
%try_circ_fit
%
% IB
%
% revival of a 13 years old code
% Create data for a circle + noise
th = linspace(0,2*pi,20)';
R=1.1111111;
sigma = R/10;
x = R*cos(th)+randn(size(th))*sigma;
y = R*sin(th)+randn(size(th))*sigma;
plot(x,y,'o'), title(' measured points')
pause(1)
% reconstruct circle from data
[xc,yc,Re,a] = circfit(x,y);
xe = Re*cos(th)+xc; ye = Re*sin(th)+yc;
plot(x,y,'o',[xe;xe(1)],[ye;ye(1)],'-.',R*cos(th),R*sin(th)),
title(' measured fitted and true circles')
legend('measured','fitted','true')
text(xc-R*0.9,yc,sprintf('center (%g , %g ); R=%g',xc,yc,Re))
xlabel x, ylabel y
axis equal
CODE:
function [center,rad,v1n,v2nb] = circlefit3d(p1,p2,p3)
% circlefit3d: Compute center and radii of circles in 3d which are defined by three points on the circumference
% usage: [center,rad,v1,v2] = circlefit3d(p1,p2,p3)
%
% arguments: (input)
% p1, p2, p3 - vectors of points (rowwise, size(p1) = [n 3])
% describing the three corresponding points on the same circle.
% p1, p2 and p3 must have the same length n.
%
% arguments: (output)
% center - (nx3) matrix of center points for each triple of points in p1, p2, p3
%
% rad - (nx1) vector of circle radii.
% if there have been errors, radii is a negative scalar ( = error code)
%
% v1, v2 - (nx3) perpendicular vectors inside circle plane
%
% Example usage:
%
% (1)
% p1 = rand(10,3);
% p2 = rand(10,3);
% p3 = rand(10,3);
% [center, rad] = circlefit3d(p1,p2,p3);
% % verification, result should be all (nearly) zero
% result(:,1)=sqrt(sum((p1-center).^2,2))-rad;
% result(:,2)=sqrt(sum((p2-center).^2,2))-rad;
% result(:,3)=sqrt(sum((p3-center).^2,2))-rad;
% if sum(sum(abs(result))) < 1e-12,
% disp('All circles have been found correctly.');
% else,
% disp('There had been errors.');
% end
%
%
% (2)
% p1=rand(4,3);p2=rand(4,3);p3=rand(4,3);
% [center,rad,v1,v2] = circlefit3d(p1,p2,p3);
% plot3(p1(:,1),p1(:,2),p1(:,3),'bo');hold on;plot3(p2(:,1),p2(:,2),p2(:,3),'bo');plot3(p3(:,1),p3(:,2),p3(:,3),'bo');
% for i=1:361,
% a = i/180*pi;
% x = center(:,1)+sin(a)*rad.*v1(:,1)+cos(a)*rad.*v2(:,1);
% y = center(:,2)+sin(a)*rad.*v1(:,2)+cos(a)*rad.*v2(:,2);
% z = center(:,3)+sin(a)*rad.*v1(:,3)+cos(a)*rad.*v2(:,3);
% plot3(x,y,z,'r.');
% end
% axis equal;grid on;rotate3d on;
%
%
% Author: Johannes Korsawe
% E-mail: johannes.korsawe@volkswagen.de
% Release: 1.0
% Release date: 26/01/2012
% Default values
center = [];rad = 0;v1n=[];v2nb=[];
% check inputs
% check number of inputs
if nargin~=3,
fprintf('??? Error using ==> cirlefit3d\nThree input matrices are needed.\n');rad = -1;return;
end
% check size of inputs
if size(p1,2)~=3 || size(p2,2)~=3 || size(p3,2)~=3,
fprintf('??? Error using ==> cirlefit3d\nAll input matrices must have three columns.\n');rad = -2;return;
end
n = size(p1,1);
if size(p2,1)~=n || size(p3,1)~=n,
fprintf('??? Error using ==> cirlefit3d\nAll input matrices must have the same number or rows.\n');rad = -3;return;
end
% more checks are to follow inside calculation
% Start calculation
% v1, v2 describe the vectors from p1 to p2 and p3, resp.
v1 = p2 - p1;v2 = p3 - p1;
% l1, l2 describe the lengths of those vectors
l1 = sqrt((v1(:,1).*v1(:,1)+v1(:,2).*v1(:,2)+v1(:,3).*v1(:,3)));
l2 = sqrt((v2(:,1).*v2(:,1)+v2(:,2).*v2(:,2)+v2(:,3).*v2(:,3)));
if find(l1==0) | find(l2==0), %#ok<OR2>
fprintf('??? Error using ==> cirlefit3d\nCorresponding input points must not be identical.\n');rad = -4;return;
end
% v1n, v2n describe the normalized vectors v1 and v2
v1n = v1;for i=1:3, v1n(:,i) = v1n(:,i)./l1;end
v2n = v2;for i=1:3, v2n(:,i) = v2n(:,i)./l2;end
% nv describes the normal vector on the plane of the circle
nv = [v1n(:,2).*v2n(:,3) - v1n(:,3).*v2n(:,2) , v1n(:,3).*v2n(:,1) - v1n(:,1).*v2n(:,3) , v1n(:,1).*v2n(:,2) - v1n(:,2).*v2n(:,1)];
if find(sum(abs(nv),2)<1e-5),
fprintf('??? Warning using ==> cirlefit3d\nSome corresponding input points are nearly collinear.\n');
end
% v2nb: orthogonalization of v2n against v1n
dotp = v2n(:,1).*v1n(:,1) + v2n(:,2).*v1n(:,2) + v2n(:,3).*v1n(:,3);
v2nb = v2n;for i=1:3,v2nb(:,i) = v2nb(:,i) - dotp.*v1n(:,i);end
% normalize v2nb
l2nb = sqrt((v2nb(:,1).*v2nb(:,1)+v2nb(:,2).*v2nb(:,2)+v2nb(:,3).*v2nb(:,3)));
for i=1:3, v2nb(:,i) = v2nb(:,i)./l2nb;end
% remark: the circle plane will now be discretized as follows
%
% origin: p1 normal vector on plane: nv
% first coordinate vector: v1n second coordinate vector: v2nb
% calculate 2d coordinates of points in each plane
% p1_2d = zeros(n,2); % set per construction
% p2_2d = zeros(n,2);p2_2d(:,1) = l1; % set per construction
p3_2d = zeros(n,2); % has to be calculated
for i = 1:3,
p3_2d(:,1) = p3_2d(:,1) + v2(:,i).*v1n(:,i);
p3_2d(:,2) = p3_2d(:,2) + v2(:,i).*v2nb(:,i);
end
% calculate the fitting circle
% due to the special construction of the 2d system this boils down to solving
% q1 = [0,0], q2 = [a,0], q3 = [b,c] (points on 2d circle)
% crossing perpendicular bisectors, s and t running indices:
% solve [a/2,s] = [b/2 + c*t, c/2 - b*t]
% solution t = (a-b)/(2*c)
a = l1;b = p3_2d(:,1);c = p3_2d(:,2);
t = 0.5*(a-b)./c;
scale1 = b/2 + c.*t;scale2 = c/2 - b.*t;
% centers
center = zeros(n,3);
for i=1:3,
center(:,i) = p1(:,i) + scale1.*v1n(:,i) + scale2.*v2nb(:,i);
end
% radii
rad = sqrt((center(:,1)-p1(:,1)).^2+(center(:,2)-p1(:,2)).^2+(center(:,3)-p1(:,3)).^2);
ÔÞ
Ò»ÏÂ
(1ÈË)
»Ø¸´´ËÂ¥
2Â¥
2013-05-02 09:22:48
ÒÑÔÄ
»Ø¸´´ËÂ¥
¹Ø×¢TA
¸øTA·¢ÏûÏ¢
ËÍTAºì»¨
TAµÄ»ØÌû
zhhhero
ͳæ
(³õÈëÎÄ̳)
Ó¦Öú: 0
(Ó×¶ùÔ°)
½ð±Ò: 137.9
Ìû×Ó: 25
ÔÚÏß: 16.8Сʱ
³æºÅ: 1201795
×¢²á: 2011-02-11
ÐÔ±ð: GG
רҵ: ͳ¼ÆÑ§ÆäËûѧ¿Æ
¶ÔÁË£¬ÎÒÊÇÓÐ10×é¿Õ¼äµãÈýÎ¬×ø±ê£¬ÏÖÔÚÏëÄâºÏ¿Õ¼äÔ²¡£
ÔÞ
Ò»ÏÂ
»Ø¸´´ËÂ¥
ѧµ½ÀÏ£¬»îµ½ÀÏ
3Â¥
2013-05-02 09:58:24
ÒÑÔÄ
»Ø¸´´ËÂ¥
¹Ø×¢TA
¸øTA·¢ÏûÏ¢
ËÍTAºì»¨
TAµÄ»ØÌû
zhhhero
ͳæ
(³õÈëÎÄ̳)
Ó¦Öú: 0
(Ó×¶ùÔ°)
½ð±Ò: 137.9
Ìû×Ó: 25
ÔÚÏß: 16.8Сʱ
³æºÅ: 1201795
×¢²á: 2011-02-11
ÐÔ±ð: GG
רҵ: ͳ¼ÆÑ§ÆäËûѧ¿Æ
ÒýÓûØÌû:
4Â¥
:
Originally posted by
dbb627
at 2013-05-02 10:23:35
¿Õ¼äÔ²µÄµã±ØÈ»¹²Ã棬½«¿Õ¼ä×ø±êתµ½Æ½Ãæ×ø±êÏ£¬ÄâºÏºóÔÙת»ØÈ¥¡£
ÓÐmatlabµÄ´úÂëÂð
ÔÞ
Ò»ÏÂ
»Ø¸´´ËÂ¥
ѧµ½ÀÏ£¬»îµ½ÀÏ
5Â¥
2013-05-02 10:25:58
ÒÑÔÄ
»Ø¸´´ËÂ¥
¹Ø×¢TA
¸øTA·¢ÏûÏ¢
ËÍTAºì»¨
TAµÄ»ØÌû
²é¿´È«²¿ 10 ¸ö»Ø´ð
Èç¹û»ØÌûÄÚÈݺ¬ÓÐÐû´«ÐÅÏ¢£¬ÇëÈçʵѡÖС£·ñÔòÕʺŽ«±»È«ÂÛ̳½ûÑÔ
ÆÕͨ±íÇé
Áú
ÍÃ
Ȣ
è
°Ù¶ÈÍøÅÌ
|
360ÔÆÅÌ
|
ǧÒ×ÍøÅÌ
|
»ªÎªÍøÅÌ
ÔÚд°¿ÚÒ³ÃæÖдò¿ª×Ô¼ºÏ²»¶µÄÍøÅÌÍøÕ¾£¬½«ÎļþÉÏ´«ºó£¬È»ºó½«ÏÂÔØÁ´½Ó¸´ÖƵ½Ìû×ÓÄÚÈÝÖоͿÉÒÔÁË¡£
×î¾ßÈËÆøÈÈÌûÍÆ¼ö
[²é¿´È«²¿]
×÷Õß
»Ø/¿´
×îºó·¢±í
[
¿¼ÑÐ
]
ѰÕÒµ÷¼Á
+4
¾óǿâ?
2026-03-21
4/200
2026-03-22 16:14
by
ľÍÐζ¶
[
¿¼ÑÐ
]
324Çóµ÷¼Á
+6
luckyѽѽѽѼ
2026-03-20
6/300
2026-03-22 16:01
by
ColorlessPI
[
¿¼ÑÐ
]
ÄÜÔ´²ÄÁÏ»¯Ñ§¿ÎÌâ×éÕÐÊÕ˶ʿÑо¿Éú8-10Ãû
+5
ÍÑÓ±¶ø³ö
2026-03-16
17/850
2026-03-22 15:18
by
ÍÑÓ±¶ø³ö
[
¿¼ÑÐ
]
291 Çóµ÷¼Á
+3
»¯¹¤2026½ì±ÏÒµÉ
2026-03-21
3/150
2026-03-22 14:26
by
ColorlessPI
[
¿¼ÑÐ
]
303Çóµ÷¼Á
+5
°²ÒäÁé
2026-03-22
6/300
2026-03-22 12:46
by
ËØÑÕÇã³Ç1988
[
¿¼ÑÐ
]
Çóµ÷¼Á
+7
Auroracx
2026-03-22
7/350
2026-03-22 12:38
by
ËØÑÕÇã³Ç1988
[
¿¼ÑÐ
]
285Çóµ÷¼Á
+6
ytter
2026-03-22
6/300
2026-03-22 12:09
by
ÐÇ¿ÕÐÇÔÂ
[
¿¼ÑÐ
]
³õÊÔ 317
+7
°ëÀÔ±û
2026-03-20
7/350
2026-03-21 22:26
by
peike
[
¿¼ÑÐ
]
²ÄÁÏÓ뻯¹¤£¨0856£©304ÇóBÇøµ÷¼Á
+3
Çñgl
2026-03-20
7/350
2026-03-21 19:05
by
15709483992
[
¿¼ÑÐ
]
ÇóÖú
+5
ÃÎÀïµÄÎÞÑÔ
2026-03-21
6/300
2026-03-21 17:51
by
ѧԱ8dgXkO
[
¿¼ÑÐ
]
302Çóµ÷¼Á
+12
ºôºôºô¡£¡£¡£¡£
2026-03-17
12/600
2026-03-21 17:29
by
ColorlessPI
[
¿¼ÑÐ
]
303Çóµ÷¼Á
+5
î£08
2026-03-17
7/350
2026-03-21 03:11
by
JourneyLucky
[
¿¼ÑÐ
]
¶þ±¾¿ç¿¼Ö£´ó²ÄÁÏ306Ó¢Ò»Êý¶þ
+3
z1z2z3879
2026-03-17
3/150
2026-03-21 02:29
by
JourneyLucky
[
¿¼ÑÐ
]
Ò»Ö¾Ô¸ÖйúʯÓÍ´óѧ£¨»ª¶«£© ±¾¿ÆÆë³¹¤Òµ´óѧ
+3
ʯÄÜΰ
2026-03-17
3/150
2026-03-21 02:22
by
JourneyLucky
[
¿¼ÑÐ
]
Ò»Ö¾Ô¸Äϲý´óѧ£¬327·Ö£¬²ÄÁÏÓ뻯¹¤085600
+9
Ncdx123456
2026-03-19
9/450
2026-03-20 23:41
by
lovewei0727
[
¿¼ÑÐ
]
288Çóµ÷¼Á
+16
ÓÚº£º£º£º£
2026-03-19
16/800
2026-03-20 22:28
by
JourneyLucky
[
¿¼ÑÐ
]
328Çóµ÷¼Á£¬Ó¢ÓïÁù¼¶551£¬ÓпÆÑоÀú
+4
ÉúÎ﹤³Ìµ÷¼Á
2026-03-16
12/600
2026-03-19 11:10
by
ÉúÎ﹤³Ìµ÷¼Á
[
¿¼ÑÐ
]
²ÄÁϹ¤³Ìר˶µ÷¼Á
+5
204818@lcx
2026-03-17
6/300
2026-03-18 22:55
by
204818@lcx
[
¿¼ÑÐ
]
301Çóµ÷¼Á
+4
A_JiXing
2026-03-16
4/200
2026-03-17 17:32
by
ruiyingmiao
[
¿¼ÑÐ
]
333Çóµ÷¼Á
+3
ÎÄ˼¿Í
2026-03-16
7/350
2026-03-16 18:21
by
ÎÄ˼¿Í
ÐÅÏ¢Ìáʾ
¹Ø±Õ
ÇëÌî´¦ÀíÒâ¼û
¹Ø±Õ
È·¶¨