diff --git a/matlab/a2.m b/matlab/a2.m index 6853c60c9eb76537277424aa8f6ea5740cadd4aa..5bfa481b70cf019e73e3a7fa1d1c1b6732763732 100644 --- a/matlab/a2.m +++ b/matlab/a2.m @@ -1,3 +1,9 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5787da83c9359f43682d1687a1b36abbe8dd5a4fe061c9a8a0ce43cee135e396 -size 89 +clear +a = 0 ; +for m=100:999 + if rem(m,21)==0 + a = a+1; + end +end +a + diff --git a/matlab/a3.m b/matlab/a3.m index 5b394c81ab4f71745e4a33872b15d276e24fb1a3..bec4532dece654206ca781ebecb6e1efddf53125 100644 --- a/matlab/a3.m +++ b/matlab/a3.m @@ -1,3 +1,4 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8f7dabd0c37c2410b09f066bb8184344955a7d879b97ed765657623cb4777f3f -size 65 +clear +s1='Wmao Ymao Kmao'; +a=find(s1>='A' & s1<'Z') +s1(a)=[] diff --git a/matlab/a4.m b/matlab/a4.m index f065637c56b6229021590ea4fbc1ab23c60254fd..bcf4c68480aa8d9cb64f7ab5745f15fb19900eca 100644 --- a/matlab/a4.m +++ b/matlab/a4.m @@ -1,3 +1,4 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:78296045433609b27d8af3c3cb58c7ec2d55a7827902d2c6ea3fc55d07362fd3 -size 58 +clear +A=[1 2 3;4 5 6;7 8 9] +[u,v] = find(A>=5); +[u,v] diff --git a/matlab/a5.m b/matlab/a5.m index 6335295d63e810755b46f6bcd611fedb46465487..7ef86973fa546084d5ff14aeb524278a1d482344 100644 --- a/matlab/a5.m +++ b/matlab/a5.m @@ -1,3 +1,5 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:bb98b4788b216d10c59e117c70811e4cdec6a7f218515823292dd4197eaa06e8 -size 55 +clear +A=[11 12;13 14] +AD=det(A) +AI=inv(A) +AE=eig(A) \ No newline at end of file diff --git a/matlab/a6.m b/matlab/a6.m index b69817e5e423856bb5a6cab276f9f74cf39d2d0e..429e43baba260767211291d660a643820a6b2630 100644 --- a/matlab/a6.m +++ b/matlab/a6.m @@ -1,3 +1,3 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:203b159e0744f65812e2319f507eba18ce0929709457239035bff720fae51b7c -size 42 +clear +sum(2.^[1:63]) +sum(sum(2).^[1:63]) \ No newline at end of file diff --git a/matlab/b1.m b/matlab/b1.m index e4b67738f374177b421affeb13053be64f44d596..b552028ccf2d3c49cc196f79e9613f5b14095664 100644 --- a/matlab/b1.m +++ b/matlab/b1.m @@ -1,3 +1,13 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f989a00932749c5691570743ed1a627357655fec8e50fbf2d3e5e3b16c10dc19 -size 109 +clear +a1=1; +a2=1; +m=0; +t=2; +while m<=10000 + m=a1+a2; + a1=a2; + a2=m; + t=t+1; +end +m +t diff --git a/matlab/b2.m b/matlab/b2.m index aee6aea772ff652375077fb5baa1f92402ee3a63..be6000f3ac54fbd7522de0836658368523c36a54 100644 --- a/matlab/b2.m +++ b/matlab/b2.m @@ -1,3 +1,12 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ee3bb1d2948fa1a3e6466ec0e1e2cd857f5039829a6c5fcb678b028d9d9032cc -size 288 +syms x1 x2 p a +x1=input('请输入x1的值') +x2=input('请输入x2的值') +a=x1+x2 +switch 1 + case a>1 + p = 0.5457*exp(-0.75*x2^2-3.75*x1^2-1.5*x1) + case -1 3 + n = n-1; +end +disp 'y<3时,最大的n值为' +n +y = y-1/(2*n+1) \ No newline at end of file diff --git a/matlab/c2.m b/matlab/c2.m index 7aabd73e142681e108bb3b2ee1be471ff7b6b9f7..bd47b0aa471cc3f73c77ee9229b5d06c9f4177f9 100644 --- a/matlab/c2.m +++ b/matlab/c2.m @@ -1,3 +1,13 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d2b200552ac94714f024305fb999330b9c642921f18e8619fe9131367b8d7305 -size 188 +clear +f(1) = 1; +f(2) = 0; +f(3) = 1; +for n = 4:100 + f(n) = f(n-1)-2*f(n-2)+f(n-3); +end +max(f) +min(f) +sum(f) +i = length(find(f<0)) +j = length(find(f>0)) +k = length(find(f==0)) \ No newline at end of file diff --git a/matlab/c3.2.m b/matlab/c3.2.m index 726a637906a15a3dcf8bbd2b4df7fbce7b558a62..68e00ed31f3b159bbd2a2f5f5fda3732b09932ec 100644 --- a/matlab/c3.2.m +++ b/matlab/c3.2.m @@ -1,3 +1,14 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0174ac8d55fbd6fe5134f7c261731f4ce8c5cc5956528be54ffda5faa99eaf83 -size 238 +x = input ('输入一个百分制成绩') +if x > 100 || x < 0 + disp '输入的成绩不正确' +elseif x>= 90 + disp "A" +elseif x>=80 + disp "B" +elseif x>= 70 + disp "C" +elseif x>=60 + disp "D" +else + disp "E + 输入百分制成绩:76 \ No newline at end of file diff --git a/matlab/c3.m b/matlab/c3.m index 2d25f2f600a47300fc5f1563df1d5e5de96f0e6f..062ffde23ac9735266db6900c3abcb40722c1a82 100644 --- a/matlab/c3.m +++ b/matlab/c3.m @@ -1,3 +1,19 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:72ef69502e672c6f3a853274a57dc5124c6daa9e645c6488f64dcc329505b248 -size 321 +x=input('输入一个百分制成绩') +switch floor(x/10) + case 9 + disp A + case 8 + disp B + case 7 + disp C + case 6 + dispD + case num2cell(0:5) + disp E + otherwise + if x==100 + disp A + else disp '输入的成绩不正确' + end +end + \ No newline at end of file diff --git a/matlab/c4.m b/matlab/c4.m index f6cbdd9f10ded99c21a9a2ec54aee317b6430c39..09d0bbcc581d646c54c75a66d1ed2d73dc132602 100644 --- a/matlab/c4.m +++ b/matlab/c4.m @@ -1,3 +1,11 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8c74fe57ce1f6a92a9a9911e467679bbff4f66d90acbdeef84f2f55887497731 -size 184 +clear +x=input('请输入x的值') +if x<0 & X~=3 + y=x.^2+x-6 +elseif x>=0 & x<5 & x~=2 & x~=3 + y=x.^2-5*x+6 +else + y=x.^2-x-1 +end +a = [-0.5,-3.0,1.0,2.0,2.5,3.0,5.0] +y = a diff --git a/matlab/c5.m b/matlab/c5.m index c2cd9a4832d95ed44273e94ffde6e2d1acc88036..29104e8d78a3fdd91ee3804816e4950ebee8de4f 100644 --- a/matlab/c5.m +++ b/matlab/c5.m @@ -1,3 +1,9 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:cbf259fc026f18d3891de6a4fd1d6d3e0e8d25f71859a941b36fe7c69580ad60 -size 159 +x=rand(1,30000); +A = mean(x) +d = std(x) +Max = max(x) +Min = min(x) +y = length(find(x>0.5)); +i = y/30000 * 100% +z=length(find(x<0.5)); +p = z/30000 * 100% \ No newline at end of file diff --git a/matlab/c6.m b/matlab/c6.m index 243cadb83e327bd42a76ad4f21eb600dd8f1630f..64d5f60f45d196cf0ffd5e172b8403e2e35200d4 100644 --- a/matlab/c6.m +++ b/matlab/c6.m @@ -1,3 +1,11 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0c6c7e032af95460f7fe2948d3cc33019ab942ae2ef99d1f3aa6f21a4ed18877 -size 162 +clear +t = 45+50*rand(100,5); +P = fix(t); +[x,i]=max(P) +[y,j]=min(P) +A=mean(P) +d=std(P) +s=sum(P,2) +[X,m]=max(s) +[Y,n]=min(s) +[score,num]=sort(s,'descend') \ No newline at end of file diff --git a/matlab/c7.m b/matlab/c7.m index 2b3d27d3334d25e0d61bdb329aec72186c065985..d3fa52340b3836b2959055a5c160af990f2f238a 100644 --- a/matlab/c7.m +++ b/matlab/c7.m @@ -1,3 +1,8 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0039f3fd0822213a8385f0ea7df8be14e568bdb9d8256766d3da783f88e5f45e -size 142 +p1=[1,2 4.0.5]; +p2=[1,2]; +p3=[1,2,3]; +p=p1+[0,conv(p2,p3)] +A = roots(p) +A=[-1 1.2 -1.4;0.75 2 3.5;0 5 2.5]; +polyval (p,A) +polyvalm(p,A) \ No newline at end of file diff --git a/matlab/d1.m b/matlab/d1.m index 4578917fc97ce8591e1e78ee5c27826270b40339..ebada7a422e26387435e7e89143ec354547e2b0b 100644 --- a/matlab/d1.m +++ b/matlab/d1.m @@ -1,3 +1,4 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:94ea5e30d355dd76633f9d1824fa4682059a244fc52111b0a108588f7074f0b3 -size 100 +t = 0:0.5 ;2*pi; +plot(t,sin(t),'r-.o',t,cos(t),'m-s') +legend('sinx','cosx',4) +axis([0 2*pi -2 2]) \ No newline at end of file diff --git a/matlab/d2.m b/matlab/d2.m index d4d2b7ec903d8df595ce629ba3feb65058a4e157..00a3a1cdeea137094201d1b3041bdf7e062f5212 100644 --- a/matlab/d2.m +++ b/matlab/d2.m @@ -1,3 +1,3 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a3bf3ae0b26232392a4eef15340d2c388bee78e4b849fea472e0840270f72a18 -size 65 +function Y=myfun(x) +Y(:,1)=200*sin(x(:))./x(:); +Y(:,2)=x(:).^2; \ No newline at end of file diff --git a/matlab/d3.m b/matlab/d3.m index fa3b148d6ec06d9145d7444564fd72f7489ca902..bed2d9665e706dfa747ecbd8369ba994147d985c 100644 --- a/matlab/d3.m +++ b/matlab/d3.m @@ -1,3 +1,11 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:532c29937a943fd21b060e18e05b18aae4ab0cd4ff3c1e3a90da05a48e21f225 -size 196 +x=0:0.1:100 +y=log10(x) +subplot(311),loglog(x,y) +grid +title('loglog graph') +subplot(312),semilogx(x,y) +grid +title('semilogx graph') +subplot(313),semilogy(x,y) +grid +title('semilogy graph') \ No newline at end of file diff --git a/matlab/d4.m b/matlab/d4.m index 11009b84c53c32bce304f54077d4dc3298d6d689..cd08c371ab448031558c18889ad47b1cf5e4d70e 100644 --- a/matlab/d4.m +++ b/matlab/d4.m @@ -1,3 +1,9 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1739502332b6675f9438482c4be2c6a7065ab59c1e3ca7a0fe112c959a491b54 -size 154 +t=-3:0.125:3; +x=sin(2.*t);y=cos(2.*t);[x,y]=meshgrid(x,y); +z=x.^2+2*y.^2; +mesh(x,y,z) +axis([-1 - -1 - 0 3]) +pause +meshc(x,y,Z) +pause +surf(x,y,z) diff --git a/matlab/d5.m b/matlab/d5.m index bcb93462fba968dcc47bec40582eb46845fa099b..4882955250e00886bcecae5de1a35047e32ad65b 100644 --- a/matlab/d5.m +++ b/matlab/d5.m @@ -1,3 +1,3 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9c33451e1d7c76a32a71266f0c502fcbec4034b6f1880037adb0ba97dd89dc26 -size 71 +x=[-2:0.02:2]; +y=1.1*sign(x).*(abs(x)>1.1)+x*(abs(x)<=1.1); +plot(x,y) \ No newline at end of file diff --git a/matlab/matlab.docx b/matlab/matlab.docx index d00da735c40e032bcbf482517d4cd996413d86d7..9341c009a5111edfcb199d84f866d54a909afd4c 100644 Binary files a/matlab/matlab.docx and b/matlab/matlab.docx differ diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB GUI\345\256\236\347\216\260\345\212\250\346\200\201\347\224\273\345\233\276\346\233\262\347\272\277\347\232\204\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201.rar" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB GUI\345\256\236\347\216\260\345\212\250\346\200\201\347\224\273\345\233\276\346\233\262\347\272\277\347\232\204\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201.rar" index e37221afc4194d1a358b21a44158221921c0a8ce..f046af4d58f2d9ae96f2be04b9598b768b5222c4 100644 Binary files "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB GUI\345\256\236\347\216\260\345\212\250\346\200\201\347\224\273\345\233\276\346\233\262\347\272\277\347\232\204\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201.rar" and "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB GUI\345\256\236\347\216\260\345\212\250\346\200\201\347\224\273\345\233\276\346\233\262\347\272\277\347\232\204\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201.rar" differ diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\344\270\255colorbar\347\232\204\350\256\276\347\275\256 \346\272\220\347\250\213\345\272\217\344\273\243\347\240\201.rar" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\344\270\255colorbar\347\232\204\350\256\276\347\275\256 \346\272\220\347\250\213\345\272\217\344\273\243\347\240\201.rar" index eb63ae7a2ce2796df9bcd69fd9cf44746d17953f..e6fde236943e7e7aab38273d7211ebb1b550784e 100644 Binary files "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\344\270\255colorbar\347\232\204\350\256\276\347\275\256 \346\272\220\347\250\213\345\272\217\344\273\243\347\240\201.rar" and "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\344\270\255colorbar\347\232\204\350\256\276\347\275\256 \346\272\220\347\250\213\345\272\217\344\273\243\347\240\201.rar" differ diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\344\270\255\347\232\204\345\237\272\346\234\254\350\257\255\346\263\225\345\222\214\350\257\255\345\217\245\347\244\272\344\276\213\344\273\243\347\240\201.rar" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\344\270\255\347\232\204\345\237\272\346\234\254\350\257\255\346\263\225\345\222\214\350\257\255\345\217\245\347\244\272\344\276\213\344\273\243\347\240\201.rar" index 3ae29c21d0ce149f306a98a64506491c26cbd327..3c138d4d2a2631d9ffd0e587408c75f3603e2a6b 100644 Binary files "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\344\270\255\347\232\204\345\237\272\346\234\254\350\257\255\346\263\225\345\222\214\350\257\255\345\217\245\347\244\272\344\276\213\344\273\243\347\240\201.rar" and "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\344\270\255\347\232\204\345\237\272\346\234\254\350\257\255\346\263\225\345\222\214\350\257\255\345\217\245\347\244\272\344\276\213\344\273\243\347\240\201.rar" differ diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\344\275\277\347\224\250\346\254\247\346\213\211Euler\346\263\225\346\261\202\350\247\243\345\276\256\345\210\206\346\226\271\347\250\213\347\273\204 \346\272\220\347\250\213\345\272\217\344\273\243\347\240\201.rar" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\344\275\277\347\224\250\346\254\247\346\213\211Euler\346\263\225\346\261\202\350\247\243\345\276\256\345\210\206\346\226\271\347\250\213\347\273\204 \346\272\220\347\250\213\345\272\217\344\273\243\347\240\201.rar" index 4ad7f35d0768f703daea384d6c342ad4c1ef1487..636459a6c712f5e85d7b49aca4cb3eb5b1defd5a 100644 Binary files "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\344\275\277\347\224\250\346\254\247\346\213\211Euler\346\263\225\346\261\202\350\247\243\345\276\256\345\210\206\346\226\271\347\250\213\347\273\204 \346\272\220\347\250\213\345\272\217\344\273\243\347\240\201.rar" and "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\344\275\277\347\224\250\346\254\247\346\213\211Euler\346\263\225\346\261\202\350\247\243\345\276\256\345\210\206\346\226\271\347\250\213\347\273\204 \346\272\220\347\250\213\345\272\217\344\273\243\347\240\201.rar" differ diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\345\205\211\351\200\232\350\277\207\344\270\211\347\250\234\351\225\234\350\211\262\346\225\243\345\212\250\347\224\273.rar" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\345\205\211\351\200\232\350\277\207\344\270\211\347\250\234\351\225\234\350\211\262\346\225\243\345\212\250\347\224\273.rar" index a057e1e0cb2abb3fb113011bb5230646b08c05ef..d21106466fc4f0f2c42a2ceff3c2b620646ab983 100644 Binary files "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\345\205\211\351\200\232\350\277\207\344\270\211\347\250\234\351\225\234\350\211\262\346\225\243\345\212\250\347\224\273.rar" and "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\345\205\211\351\200\232\350\277\207\344\270\211\347\250\234\351\225\234\350\211\262\346\225\243\345\212\250\347\224\273.rar" differ diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\345\233\276\345\203\217\345\244\204\347\220\206\345\256\236\347\216\260\350\236\272\347\272\271\350\257\206\345\210\253 \346\272\220\347\250\213\345\272\217\344\273\243\347\240\201.rar" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\345\233\276\345\203\217\345\244\204\347\220\206\345\256\236\347\216\260\350\236\272\347\272\271\350\257\206\345\210\253 \346\272\220\347\250\213\345\272\217\344\273\243\347\240\201.rar" index 8cd67626944450aef5cbb07c2e436610ef0f2432..b14225467eb20b36f6a26aa190b3e89bd866dabb 100644 Binary files "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\345\233\276\345\203\217\345\244\204\347\220\206\345\256\236\347\216\260\350\236\272\347\272\271\350\257\206\345\210\253 \346\272\220\347\250\213\345\272\217\344\273\243\347\240\201.rar" and "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\345\233\276\345\203\217\345\244\204\347\220\206\345\256\236\347\216\260\350\236\272\347\272\271\350\257\206\345\210\253 \346\272\220\347\250\213\345\272\217\344\273\243\347\240\201.rar" differ diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\345\244\234\351\227\264\350\275\246\347\211\214\350\257\206\345\210\253\347\250\213\345\272\217.rar" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\345\244\234\351\227\264\350\275\246\347\211\214\350\257\206\345\210\253\347\250\213\345\272\217.rar" index 6fa4bc474a0d351961ce6ffd2577a79cbed88320..2df14882714c84b4369847b9b363f61f8ed8b8fe 100644 Binary files "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\345\244\234\351\227\264\350\275\246\347\211\214\350\257\206\345\210\253\347\250\213\345\272\217.rar" and "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\345\244\234\351\227\264\350\275\246\347\211\214\350\257\206\345\210\253\347\250\213\345\272\217.rar" differ diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\345\256\236\347\216\260\344\270\215\345\220\214\346\217\222\345\200\274\346\226\271\346\263\225\347\232\204GUI\347\225\214\351\235\242\350\256\276\350\256\241 \346\272\220\347\250\213\345\272\217\344\273\243\347\240\201.rar" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\345\256\236\347\216\260\344\270\215\345\220\214\346\217\222\345\200\274\346\226\271\346\263\225\347\232\204GUI\347\225\214\351\235\242\350\256\276\350\256\241 \346\272\220\347\250\213\345\272\217\344\273\243\347\240\201.rar" index 125611f35b5cedd917fc18d5c282c95dee13f41d..3382d4fb2f752976a9325092ac759695b7101aeb 100644 Binary files "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\345\256\236\347\216\260\344\270\215\345\220\214\346\217\222\345\200\274\346\226\271\346\263\225\347\232\204GUI\347\225\214\351\235\242\350\256\276\350\256\241 \346\272\220\347\250\213\345\272\217\344\273\243\347\240\201.rar" and "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\345\256\236\347\216\260\344\270\215\345\220\214\346\217\222\345\200\274\346\226\271\346\263\225\347\232\204GUI\347\225\214\351\235\242\350\256\276\350\256\241 \346\272\220\347\250\213\345\272\217\344\273\243\347\240\201.rar" differ diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\345\256\236\347\216\260\345\201\217\345\276\256\345\210\206\346\226\271\347\250\213\347\232\204\345\267\256\345\210\206\350\256\241\347\256\227 \346\272\220\347\250\213\345\272\217\344\273\243\347\240\201.rar" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\345\256\236\347\216\260\345\201\217\345\276\256\345\210\206\346\226\271\347\250\213\347\232\204\345\267\256\345\210\206\350\256\241\347\256\227 \346\272\220\347\250\213\345\272\217\344\273\243\347\240\201.rar" index 96d34405177ad8d54a50561535e4bfd66277cbe7..a9f32cbfc2cb5dc45ed4d62846f780e482ddc8ce 100644 Binary files "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\345\256\236\347\216\260\345\201\217\345\276\256\345\210\206\346\226\271\347\250\213\347\232\204\345\267\256\345\210\206\350\256\241\347\256\227 \346\272\220\347\250\213\345\272\217\344\273\243\347\240\201.rar" and "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\345\256\236\347\216\260\345\201\217\345\276\256\345\210\206\346\226\271\347\250\213\347\232\204\345\267\256\345\210\206\350\256\241\347\256\227 \346\272\220\347\250\213\345\272\217\344\273\243\347\240\201.rar" differ diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\345\256\236\347\216\260\345\233\276\345\203\217\345\216\273\345\231\252 \346\273\244\346\263\242 \351\224\220\345\214\226 \350\276\271\347\274\230\346\243\200\346\265\213.rar" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\345\256\236\347\216\260\345\233\276\345\203\217\345\216\273\345\231\252 \346\273\244\346\263\242 \351\224\220\345\214\226 \350\276\271\347\274\230\346\243\200\346\265\213.rar" index 8131769aa5ee514bdc789900a7b66ca03e88e5f6..ec9c6377c9657d77f856637022fa23a244bbf284 100644 Binary files "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\345\256\236\347\216\260\345\233\276\345\203\217\345\216\273\345\231\252 \346\273\244\346\263\242 \351\224\220\345\214\226 \350\276\271\347\274\230\346\243\200\346\265\213.rar" and "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\345\256\236\347\216\260\345\233\276\345\203\217\345\216\273\345\231\252 \346\273\244\346\263\242 \351\224\220\345\214\226 \350\276\271\347\274\230\346\243\200\346\265\213.rar" differ diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\345\256\236\347\216\260\347\201\260\345\272\246\351\242\204\346\265\213\346\250\241\345\236\213\347\232\204\346\272\220\344\273\243\347\240\201.rar" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\345\256\236\347\216\260\347\201\260\345\272\246\351\242\204\346\265\213\346\250\241\345\236\213\347\232\204\346\272\220\344\273\243\347\240\201.rar" index bf8c81ecb5de49c0e8b6a27ea31524919baba3ea..04db3fb2bc0dc15bd15292ffaa03eb3678ad7ab2 100644 Binary files "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\345\256\236\347\216\260\347\201\260\345\272\246\351\242\204\346\265\213\346\250\241\345\236\213\347\232\204\346\272\220\344\273\243\347\240\201.rar" and "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\345\256\236\347\216\260\347\201\260\345\272\246\351\242\204\346\265\213\346\250\241\345\236\213\347\232\204\346\272\220\344\273\243\347\240\201.rar" differ diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\345\256\236\347\216\260\347\272\277\346\200\247\346\213\237\345\220\210\345\222\214\347\233\270\345\205\263\347\263\273\346\225\260 \346\272\220\347\250\213\345\272\217\344\273\243\347\240\201.rar" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\345\256\236\347\216\260\347\272\277\346\200\247\346\213\237\345\220\210\345\222\214\347\233\270\345\205\263\347\263\273\346\225\260 \346\272\220\347\250\213\345\272\217\344\273\243\347\240\201.rar" index afcf2993a099e1de72350d0fc7518a1d1dcce15a..9bcada6046330c5aca5caf1bbfc14af23f354ac9 100644 Binary files "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\345\256\236\347\216\260\347\272\277\346\200\247\346\213\237\345\220\210\345\222\214\347\233\270\345\205\263\347\263\273\346\225\260 \346\272\220\347\250\213\345\272\217\344\273\243\347\240\201.rar" and "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\345\256\236\347\216\260\347\272\277\346\200\247\346\213\237\345\220\210\345\222\214\347\233\270\345\205\263\347\263\273\346\225\260 \346\272\220\347\250\213\345\272\217\344\273\243\347\240\201.rar" differ diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\345\257\273\346\211\276\347\264\240\346\225\260\347\232\204\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201.rar" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\345\257\273\346\211\276\347\264\240\346\225\260\347\232\204\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201.rar" index a89270b6bf9963d7b3a156a0feae0e45df9b4b2d..7f6fda7ef594cb295b9d3037d33ae7cd7470d711 100644 Binary files "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\345\257\273\346\211\276\347\264\240\346\225\260\347\232\204\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201.rar" and "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\345\257\273\346\211\276\347\264\240\346\225\260\347\232\204\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201.rar" differ diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\345\273\272\346\250\241 \344\272\272\345\217\243\345\242\236\351\225\277\346\250\241\345\236\213 \346\272\220\347\250\213\345\272\217\344\273\243\347\240\201.rar" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\345\273\272\346\250\241 \344\272\272\345\217\243\345\242\236\351\225\277\346\250\241\345\236\213 \346\272\220\347\250\213\345\272\217\344\273\243\347\240\201.rar" index f980462b6cbf958699660a3b50e642e669298364..3af19a77db9e873e18b01186020d664d6a31cc6f 100644 Binary files "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\345\273\272\346\250\241 \344\272\272\345\217\243\345\242\236\351\225\277\346\250\241\345\236\213 \346\272\220\347\250\213\345\272\217\344\273\243\347\240\201.rar" and "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\345\273\272\346\250\241 \344\272\272\345\217\243\345\242\236\351\225\277\346\250\241\345\236\213 \346\272\220\347\250\213\345\272\217\344\273\243\347\240\201.rar" differ diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\346\226\207\345\255\227\350\277\236\351\200\232\345\237\237\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201.rar" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\346\226\207\345\255\227\350\277\236\351\200\232\345\237\237\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201.rar" index 78cb228e0f105123d993823bcaa3125fb4621d03..775009ede7d9ee4498b4db73bd0027aaeabe02a7 100644 Binary files "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\346\226\207\345\255\227\350\277\236\351\200\232\345\237\237\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201.rar" and "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\346\226\207\345\255\227\350\277\236\351\200\232\345\237\237\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201.rar" differ diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\346\261\202\350\247\243\351\235\236\347\272\277\346\200\247\346\226\271\347\250\213\347\273\204 fsolve\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201.rar" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\346\261\202\350\247\243\351\235\236\347\272\277\346\200\247\346\226\271\347\250\213\347\273\204 fsolve\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201.rar" index 98e957b5841fcf154aa92b989031ee4cfbaeebdc..10e116bc191f1743c9f592a7c1208607a2929c91 100644 Binary files "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\346\261\202\350\247\243\351\235\236\347\272\277\346\200\247\346\226\271\347\250\213\347\273\204 fsolve\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201.rar" and "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\346\261\202\350\247\243\351\235\236\347\272\277\346\200\247\346\226\271\347\250\213\347\273\204 fsolve\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201.rar" differ diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\347\224\237\346\210\220Gif\345\233\276\347\211\207\347\250\213\345\272\217\346\272\220\344\273\243\347\240\201.rar" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\347\224\237\346\210\220Gif\345\233\276\347\211\207\347\250\213\345\272\217\346\272\220\344\273\243\347\240\201.rar" index 8aa85b4f878f90ebbe720248cf6f17a99a0cc548..c30be66a695d3acb7a2e3fa4cd57576f4ea54e26 100644 Binary files "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\347\224\237\346\210\220Gif\345\233\276\347\211\207\347\250\213\345\272\217\346\272\220\344\273\243\347\240\201.rar" and "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\347\224\237\346\210\220Gif\345\233\276\347\211\207\347\250\213\345\272\217\346\272\220\344\273\243\347\240\201.rar" differ diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\347\273\230\345\210\266 \347\273\264\347\273\264\345\256\211\345\260\274Viviani\346\233\262\347\272\277 \346\272\220\344\273\243\347\240\201\347\250\213\345\272\217.rar" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\347\273\230\345\210\266 \347\273\264\347\273\264\345\256\211\345\260\274Viviani\346\233\262\347\272\277 \346\272\220\344\273\243\347\240\201\347\250\213\345\272\217.rar" index d96b56e4b02e030cca0c41198159b65b109d1a92..6354e6e0b61e017c31f3aae30626bc05660cf5e9 100644 Binary files "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\347\273\230\345\210\266 \347\273\264\347\273\264\345\256\211\345\260\274Viviani\346\233\262\347\272\277 \346\272\220\344\273\243\347\240\201\347\250\213\345\272\217.rar" and "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\347\273\230\345\210\266 \347\273\264\347\273\264\345\256\211\345\260\274Viviani\346\233\262\347\272\277 \346\272\220\344\273\243\347\240\201\347\250\213\345\272\217.rar" differ diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\350\256\241\347\256\227\347\262\222\345\255\220\351\200\237\345\272\246\345\210\206\345\270\203 \346\272\220\347\250\213\345\272\217\344\273\243\347\240\201.rar" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\350\256\241\347\256\227\347\262\222\345\255\220\351\200\237\345\272\246\345\210\206\345\270\203 \346\272\220\347\250\213\345\272\217\344\273\243\347\240\201.rar" index e75ef14f72e2abc54b2829715839acaa3f0209b7..6873db2a272758da217c1da0a3371df5e5df6d79 100644 Binary files "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\350\256\241\347\256\227\347\262\222\345\255\220\351\200\237\345\272\246\345\210\206\345\270\203 \346\272\220\347\250\213\345\272\217\344\273\243\347\240\201.rar" and "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\350\256\241\347\256\227\347\262\222\345\255\220\351\200\237\345\272\246\345\210\206\345\270\203 \346\272\220\347\250\213\345\272\217\344\273\243\347\240\201.rar" differ diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\350\256\276\350\256\241\347\232\204\347\256\200\345\215\225\346\273\244\346\263\242\345\231\250\347\250\213\345\272\217\346\272\220\344\273\243\347\240\201.rar" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\350\256\276\350\256\241\347\232\204\347\256\200\345\215\225\346\273\244\346\263\242\345\231\250\347\250\213\345\272\217\346\272\220\344\273\243\347\240\201.rar" index e9f3c8ebc1ec1ab6bd0978bd19c9e685b8166838..a9780e39635d3158881af78deaa774053e529f28 100644 Binary files "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\350\256\276\350\256\241\347\232\204\347\256\200\345\215\225\346\273\244\346\263\242\345\231\250\347\250\213\345\272\217\346\272\220\344\273\243\347\240\201.rar" and "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\350\256\276\350\256\241\347\232\204\347\256\200\345\215\225\346\273\244\346\263\242\345\231\250\347\250\213\345\272\217\346\272\220\344\273\243\347\240\201.rar" differ diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\351\234\215\345\244\253\346\233\274Huffman\347\274\226\347\240\201\350\257\221\347\240\201GUI\347\225\214\351\235\242\350\256\276\350\256\241 \346\272\220\347\250\213\345\272\217\344\273\243\347\240\201.rar" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\351\234\215\345\244\253\346\233\274Huffman\347\274\226\347\240\201\350\257\221\347\240\201GUI\347\225\214\351\235\242\350\256\276\350\256\241 \346\272\220\347\250\213\345\272\217\344\273\243\347\240\201.rar" index 8c26f539761972a39e7cd5c524b87b8f7979cec2..160e57763f544a3a4d37c5dd5f5f42e9bf903f88 100644 Binary files "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\351\234\215\345\244\253\346\233\274Huffman\347\274\226\347\240\201\350\257\221\347\240\201GUI\347\225\214\351\235\242\350\256\276\350\256\241 \346\272\220\347\250\213\345\272\217\344\273\243\347\240\201.rar" and "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/MATLAB\351\234\215\345\244\253\346\233\274Huffman\347\274\226\347\240\201\350\257\221\347\240\201GUI\347\225\214\351\235\242\350\256\276\350\256\241 \346\272\220\347\250\213\345\272\217\344\273\243\347\240\201.rar" differ diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/\345\237\272\344\272\216\344\273\277\345\260\204\345\217\230\346\215\242\347\232\204\346\225\260\345\255\227\345\233\276\350\261\241\347\275\256\344\271\261\346\212\200\346\234\257 MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201.rar" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/\345\237\272\344\272\216\344\273\277\345\260\204\345\217\230\346\215\242\347\232\204\346\225\260\345\255\227\345\233\276\350\261\241\347\275\256\344\271\261\346\212\200\346\234\257 MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201.rar" index 4c884692c53eb0f5d53089af62f6d04d6d7c96a6..b7925b6925e9f09ccdd95e148ac27f18458293a4 100644 Binary files "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/\345\237\272\344\272\216\344\273\277\345\260\204\345\217\230\346\215\242\347\232\204\346\225\260\345\255\227\345\233\276\350\261\241\347\275\256\344\271\261\346\212\200\346\234\257 MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201.rar" and "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/\345\237\272\344\272\216\344\273\277\345\260\204\345\217\230\346\215\242\347\232\204\346\225\260\345\255\227\345\233\276\350\261\241\347\275\256\344\271\261\346\212\200\346\234\257 MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201.rar" differ diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/\346\213\211\346\240\274\346\234\227\346\227\245\346\217\222\345\200\274 MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201.rar" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/\346\213\211\346\240\274\346\234\227\346\227\245\346\217\222\345\200\274 MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201.rar" index 017727f6fa03dbd9912ce25fe45787d78a26f83c..1c3d848ed61f65acc4ad350d1a715b532637a9bc 100644 Binary files "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/\346\213\211\346\240\274\346\234\227\346\227\245\346\217\222\345\200\274 MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201.rar" and "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/\346\213\211\346\240\274\346\234\227\346\227\245\346\217\222\345\200\274 MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201.rar" differ diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/\347\211\233\351\241\277Newton\346\217\222\345\200\274 MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201.rar" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/\347\211\233\351\241\277Newton\346\217\222\345\200\274 MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201.rar" index ff9a71df05dac946228cd70654bc7468e0ba8343..bf29c0248e9f1af80b032fc08292773b7e925a95 100644 Binary files "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/\347\211\233\351\241\277Newton\346\217\222\345\200\274 MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201.rar" and "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/\347\211\233\351\241\277Newton\346\217\222\345\200\274 MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201.rar" differ diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/\350\222\231\347\211\271\345\215\241\346\264\233\346\263\225\346\261\202\346\244\255\345\234\206\351\235\242\347\247\257\347\232\204MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201.rar" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/\350\222\231\347\211\271\345\215\241\346\264\233\346\263\225\346\261\202\346\244\255\345\234\206\351\235\242\347\247\257\347\232\204MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201.rar" index f11f89ceaa50999858a7af17041529fb414a4387..ebc3145c881be890146d3deda668929ce993c544 100644 Binary files "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/\350\222\231\347\211\271\345\215\241\346\264\233\346\263\225\346\261\202\346\244\255\345\234\206\351\235\242\347\247\257\347\232\204MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201.rar" and "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/28\344\270\252\345\256\236\351\231\205\351\227\256\351\242\230\345\273\272\346\250\241MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201/\350\222\231\347\211\271\345\215\241\346\264\233\346\263\225\346\261\202\346\244\255\345\234\206\351\235\242\347\247\257\347\232\204MATLAB\346\272\220\347\250\213\345\272\217\344\273\243\347\240\201.rar" differ diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter10\345\237\272\344\272\216\347\262\222\345\255\220\347\276\244\347\256\227\346\263\225\347\232\204\345\244\232\347\233\256\346\240\207\346\220\234\347\264\242\347\256\227\346\263\225.rar" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter10\345\237\272\344\272\216\347\262\222\345\255\220\347\276\244\347\256\227\346\263\225\347\232\204\345\244\232\347\233\256\346\240\207\346\220\234\347\264\242\347\256\227\346\263\225.rar" index 7443dfc16980d4362ddb7613071672de920f90a2..2f1b61af7fd5e0ebc88450466567fed542798a3a 100644 Binary files "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter10\345\237\272\344\272\216\347\262\222\345\255\220\347\276\244\347\256\227\346\263\225\347\232\204\345\244\232\347\233\256\346\240\207\346\220\234\347\264\242\347\256\227\346\263\225.rar" and "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter10\345\237\272\344\272\216\347\262\222\345\255\220\347\276\244\347\256\227\346\263\225\347\232\204\345\244\232\347\233\256\346\240\207\346\220\234\347\264\242\347\256\227\346\263\225.rar" differ diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter11\345\237\272\344\272\216\345\244\232\345\261\202\347\274\226\347\240\201\351\201\227\344\274\240\347\256\227\346\263\225\347\232\204\350\275\246\351\227\264\350\260\203\345\272\246\347\256\227\346\263\225.rar" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter11\345\237\272\344\272\216\345\244\232\345\261\202\347\274\226\347\240\201\351\201\227\344\274\240\347\256\227\346\263\225\347\232\204\350\275\246\351\227\264\350\260\203\345\272\246\347\256\227\346\263\225.rar" index 2f5c59a8dbc9c2e761fd5ae65cf7a88fa3ee3177..1c534ec5d3c40f0d29156f2a51ff8237ac265562 100644 Binary files "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter11\345\237\272\344\272\216\345\244\232\345\261\202\347\274\226\347\240\201\351\201\227\344\274\240\347\256\227\346\263\225\347\232\204\350\275\246\351\227\264\350\260\203\345\272\246\347\256\227\346\263\225.rar" and "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter11\345\237\272\344\272\216\345\244\232\345\261\202\347\274\226\347\240\201\351\201\227\344\274\240\347\256\227\346\263\225\347\232\204\350\275\246\351\227\264\350\260\203\345\272\246\347\256\227\346\263\225.rar" differ diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter12\345\205\215\347\226\253\344\274\230\345\214\226\347\256\227\346\263\225\345\234\250\347\211\251\346\265\201\351\205\215\351\200\201\344\270\255\345\277\203\351\200\211\345\235\200\344\270\255\347\232\204\345\272\224\347\224\250 .rar" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter12\345\205\215\347\226\253\344\274\230\345\214\226\347\256\227\346\263\225\345\234\250\347\211\251\346\265\201\351\205\215\351\200\201\344\270\255\345\277\203\351\200\211\345\235\200\344\270\255\347\232\204\345\272\224\347\224\250 .rar" index 9a7740446b78145c9611f42df58be2fe401ff99c..25cfe49056c34297ce5f1912699055a58f4fb0ea 100644 Binary files "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter12\345\205\215\347\226\253\344\274\230\345\214\226\347\256\227\346\263\225\345\234\250\347\211\251\346\265\201\351\205\215\351\200\201\344\270\255\345\277\203\351\200\211\345\235\200\344\270\255\347\232\204\345\272\224\347\224\250 .rar" and "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter12\345\205\215\347\226\253\344\274\230\345\214\226\347\256\227\346\263\225\345\234\250\347\211\251\346\265\201\351\205\215\351\200\201\344\270\255\345\277\203\351\200\211\345\235\200\344\270\255\347\232\204\345\272\224\347\224\250 .rar" differ diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter15\345\237\272\344\272\216\346\267\267\345\220\210\347\262\222\345\255\220\347\276\244\347\256\227\346\263\225\347\232\204TSP\346\220\234\347\264\242\347\256\227\346\263\225 .rar" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter15\345\237\272\344\272\216\346\267\267\345\220\210\347\262\222\345\255\220\347\276\244\347\256\227\346\263\225\347\232\204TSP\346\220\234\347\264\242\347\256\227\346\263\225 .rar" index e941bc09a8c376c300fe70448a6fbd4a57df8614..5ec31adc1ba546c8e3c2037671ed52e8ab17c2ca 100644 Binary files "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter15\345\237\272\344\272\216\346\267\267\345\220\210\347\262\222\345\255\220\347\276\244\347\256\227\346\263\225\347\232\204TSP\346\220\234\347\264\242\347\256\227\346\263\225 .rar" and "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter15\345\237\272\344\272\216\346\267\267\345\220\210\347\262\222\345\255\220\347\276\244\347\256\227\346\263\225\347\232\204TSP\346\220\234\347\264\242\347\256\227\346\263\225 .rar" differ diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter16 \345\237\272\344\272\216\345\212\250\346\200\201\347\262\222\345\255\220\347\276\244\347\256\227\346\263\225\347\232\204\345\212\250\346\200\201\347\216\257\345\242\203\345\257\273\344\274\230\347\256\227\346\263\225.rar" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter16 \345\237\272\344\272\216\345\212\250\346\200\201\347\262\222\345\255\220\347\276\244\347\256\227\346\263\225\347\232\204\345\212\250\346\200\201\347\216\257\345\242\203\345\257\273\344\274\230\347\256\227\346\263\225.rar" index 32405a96bbe09c09c4bf50edf865f01384e9e9ff..4862425b2a32de38d4ca9d378709eee175590242 100644 Binary files "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter16 \345\237\272\344\272\216\345\212\250\346\200\201\347\262\222\345\255\220\347\276\244\347\256\227\346\263\225\347\232\204\345\212\250\346\200\201\347\216\257\345\242\203\345\257\273\344\274\230\347\256\227\346\263\225.rar" and "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter16 \345\237\272\344\272\216\345\212\250\346\200\201\347\262\222\345\255\220\347\276\244\347\256\227\346\263\225\347\232\204\345\212\250\346\200\201\347\216\257\345\242\203\345\257\273\344\274\230\347\256\227\346\263\225.rar" differ diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter17\345\237\272\344\272\216PSO\345\267\245\345\205\267\347\256\261\347\232\204\345\207\275\346\225\260\344\274\230\345\214\226\347\256\227\346\263\225.rar" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter17\345\237\272\344\272\216PSO\345\267\245\345\205\267\347\256\261\347\232\204\345\207\275\346\225\260\344\274\230\345\214\226\347\256\227\346\263\225.rar" index b16b9729b917d0526d612e5eb352f9975481866b..93914e8928194259792a8338ae7eb1bbfbe98619 100644 Binary files "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter17\345\237\272\344\272\216PSO\345\267\245\345\205\267\347\256\261\347\232\204\345\207\275\346\225\260\344\274\230\345\214\226\347\256\227\346\263\225.rar" and "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter17\345\237\272\344\272\216PSO\345\267\245\345\205\267\347\256\261\347\232\204\345\207\275\346\225\260\344\274\230\345\214\226\347\256\227\346\263\225.rar" differ diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter18\351\261\274\347\276\244\347\256\227\346\263\225\345\207\275\346\225\260\345\257\273\344\274\230.rar" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter18\351\261\274\347\276\244\347\256\227\346\263\225\345\207\275\346\225\260\345\257\273\344\274\230.rar" index 2a54606d0960112626162267aab58df0313d28ae..78ceafa2199731b31cee48ef320b05e724af0266 100644 Binary files "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter18\351\261\274\347\276\244\347\256\227\346\263\225\345\207\275\346\225\260\345\257\273\344\274\230.rar" and "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter18\351\261\274\347\276\244\347\256\227\346\263\225\345\207\275\346\225\260\345\257\273\344\274\230.rar" differ diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter19\345\237\272\344\272\216\346\250\241\346\213\237\351\200\200\347\201\253\347\256\227\346\263\225\347\232\204TSP\347\256\227\346\263\225.rar" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter19\345\237\272\344\272\216\346\250\241\346\213\237\351\200\200\347\201\253\347\256\227\346\263\225\347\232\204TSP\347\256\227\346\263\225.rar" index 90be8d46578a4834d5314aa6fa9efd01e30b4aff..1d13cb837b13a879aa425f88704ca6bb7d4d638c 100644 Binary files "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter19\345\237\272\344\272\216\346\250\241\346\213\237\351\200\200\347\201\253\347\256\227\346\263\225\347\232\204TSP\347\256\227\346\263\225.rar" and "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter19\345\237\272\344\272\216\346\250\241\346\213\237\351\200\200\347\201\253\347\256\227\346\263\225\347\232\204TSP\347\256\227\346\263\225.rar" differ diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter1\351\201\227\344\274\240\347\256\227\346\263\225\345\267\245\345\205\267\347\256\261.rar" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter1\351\201\227\344\274\240\347\256\227\346\263\225\345\267\245\345\205\267\347\256\261.rar" index 7e323c0c54e6afbfed483ff1c136e5bf722ea202..f1319b6b5b3a23bae05d6bb4079356047cf6bcec 100644 Binary files "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter1\351\201\227\344\274\240\347\256\227\346\263\225\345\267\245\345\205\267\347\256\261.rar" and "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter1\351\201\227\344\274\240\347\256\227\346\263\225\345\267\245\345\205\267\347\256\261.rar" differ diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter20\345\237\272\344\272\216\351\201\227\344\274\240\346\250\241\346\213\237\351\200\200\347\201\253\347\256\227\346\263\225\347\232\204\350\201\232\347\261\273\347\256\227\346\263\225.rar" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter20\345\237\272\344\272\216\351\201\227\344\274\240\346\250\241\346\213\237\351\200\200\347\201\253\347\256\227\346\263\225\347\232\204\350\201\232\347\261\273\347\256\227\346\263\225.rar" index 10491b6f2a2ba76e340a5cb02c8681261d00da4c..94d9642ecd6a505351f75ec2312fae00a56f6481 100644 Binary files "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter20\345\237\272\344\272\216\351\201\227\344\274\240\346\250\241\346\213\237\351\200\200\347\201\253\347\256\227\346\263\225\347\232\204\350\201\232\347\261\273\347\256\227\346\263\225.rar" and "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter20\345\237\272\344\272\216\351\201\227\344\274\240\346\250\241\346\213\237\351\200\200\347\201\253\347\256\227\346\263\225\347\232\204\350\201\232\347\261\273\347\256\227\346\263\225.rar" differ diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter21\346\250\241\346\213\237\351\200\200\347\201\253\347\256\227\346\263\225\345\267\245\345\205\267\347\256\261\345\217\212\345\272\224\347\224\250.rar" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter21\346\250\241\346\213\237\351\200\200\347\201\253\347\256\227\346\263\225\345\267\245\345\205\267\347\256\261\345\217\212\345\272\224\347\224\250.rar" index 28736f3766c6ddfb273ab462278b1df59b0ade79..ad93336c7e46215b5eef37735af7bc9212112eba 100644 Binary files "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter21\346\250\241\346\213\237\351\200\200\347\201\253\347\256\227\346\263\225\345\267\245\345\205\267\347\256\261\345\217\212\345\272\224\347\224\250.rar" and "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter21\346\250\241\346\213\237\351\200\200\347\201\253\347\256\227\346\263\225\345\267\245\345\205\267\347\256\261\345\217\212\345\272\224\347\224\250.rar" differ diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter22\350\232\201\347\276\244\347\256\227\346\263\225\347\232\204\344\274\230\345\214\226\350\256\241\347\256\227\342\200\224\342\200\224\346\227\205\350\241\214\345\225\206\351\227\256\351\242\230(TSP)\344\274\230\345\214\226 .rar" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter22\350\232\201\347\276\244\347\256\227\346\263\225\347\232\204\344\274\230\345\214\226\350\256\241\347\256\227\342\200\224\342\200\224\346\227\205\350\241\214\345\225\206\351\227\256\351\242\230(TSP)\344\274\230\345\214\226 .rar" index 3daf147328c2f563e2826e2ee1a27de097dfb8c7..646625ba8cbf3765035638ac776459e4bb7c00c9 100644 Binary files "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter22\350\232\201\347\276\244\347\256\227\346\263\225\347\232\204\344\274\230\345\214\226\350\256\241\347\256\227\342\200\224\342\200\224\346\227\205\350\241\214\345\225\206\351\227\256\351\242\230(TSP)\344\274\230\345\214\226 .rar" and "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter22\350\232\201\347\276\244\347\256\227\346\263\225\347\232\204\344\274\230\345\214\226\350\256\241\347\256\227\342\200\224\342\200\224\346\227\205\350\241\214\345\225\206\351\227\256\351\242\230(TSP)\344\274\230\345\214\226 .rar" differ diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter23\345\237\272\344\272\216\350\232\201\347\276\244\347\256\227\346\263\225\347\232\204\344\272\214\347\273\264\350\267\257\345\276\204\350\247\204\345\210\222\347\256\227\346\263\225.rar" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter23\345\237\272\344\272\216\350\232\201\347\276\244\347\256\227\346\263\225\347\232\204\344\272\214\347\273\264\350\267\257\345\276\204\350\247\204\345\210\222\347\256\227\346\263\225.rar" index 4369fbdbff2259ba0ae01f6a609f012cc67211c4..3973926ce03667e3a5380fb10f24790a3cc6c034 100644 Binary files "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter23\345\237\272\344\272\216\350\232\201\347\276\244\347\256\227\346\263\225\347\232\204\344\272\214\347\273\264\350\267\257\345\276\204\350\247\204\345\210\222\347\256\227\346\263\225.rar" and "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter23\345\237\272\344\272\216\350\232\201\347\276\244\347\256\227\346\263\225\347\232\204\344\272\214\347\273\264\350\267\257\345\276\204\350\247\204\345\210\222\347\256\227\346\263\225.rar" differ diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter24 \345\237\272\344\272\216\350\232\201\347\276\244\347\256\227\346\263\225\347\232\204\344\270\211\347\273\264\350\267\257\345\276\204\350\247\204\345\210\222\347\256\227\346\263\225.rar" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter24 \345\237\272\344\272\216\350\232\201\347\276\244\347\256\227\346\263\225\347\232\204\344\270\211\347\273\264\350\267\257\345\276\204\350\247\204\345\210\222\347\256\227\346\263\225.rar" index 1591be3d29dd62209ad326e3bb0934337abf6ed3..910cb506f33fdf71bc858e7c342867435c4e50ef 100644 Binary files "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter24 \345\237\272\344\272\216\350\232\201\347\276\244\347\256\227\346\263\225\347\232\204\344\270\211\347\273\264\350\267\257\345\276\204\350\247\204\345\210\222\347\256\227\346\263\225.rar" and "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter24 \345\237\272\344\272\216\350\232\201\347\276\244\347\256\227\346\263\225\347\232\204\344\270\211\347\273\264\350\267\257\345\276\204\350\247\204\345\210\222\347\256\227\346\263\225.rar" differ diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter26.rar" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter26.rar" index 2a3d68155e87d8c1f8c80e1a85bef2a2b91db729..ddc0e07496b45f6dfd0947dca87e5fb0f0f44984 100644 Binary files "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter26.rar" and "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter26.rar" differ diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter27\346\227\240\345\257\274\345\270\210\345\255\246\344\271\240\347\245\236\347\273\217\347\275\221\347\273\234\347\232\204\345\210\206\347\261\273\342\200\224\342\200\224\347\237\277\344\272\225\347\252\201\346\260\264\346\260\264\346\272\220\345\210\244\345\210\253.rar" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter27\346\227\240\345\257\274\345\270\210\345\255\246\344\271\240\347\245\236\347\273\217\347\275\221\347\273\234\347\232\204\345\210\206\347\261\273\342\200\224\342\200\224\347\237\277\344\272\225\347\252\201\346\260\264\346\260\264\346\272\220\345\210\244\345\210\253.rar" index c93be3377a35f94ba6c39e936ad57ac0d19e9d72..f2e3eea8b5322f67fc620dc21611fc9179585e76 100644 Binary files "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter27\346\227\240\345\257\274\345\270\210\345\255\246\344\271\240\347\245\236\347\273\217\347\275\221\347\273\234\347\232\204\345\210\206\347\261\273\342\200\224\342\200\224\347\237\277\344\272\225\347\252\201\346\260\264\346\260\264\346\272\220\345\210\244\345\210\253.rar" and "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter27\346\227\240\345\257\274\345\270\210\345\255\246\344\271\240\347\245\236\347\273\217\347\275\221\347\273\234\347\232\204\345\210\206\347\261\273\342\200\224\342\200\224\347\237\277\344\272\225\347\252\201\346\260\264\346\260\264\346\272\220\345\210\244\345\210\253.rar" differ diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter28\346\224\257\346\214\201\345\220\221\351\207\217\346\234\272\347\232\204\345\210\206\347\261\273\342\200\224\342\200\224\345\237\272\344\272\216\344\271\263\350\205\272\347\273\204\347\273\207\347\224\265\351\230\273\346\212\227\347\211\271\346\200\247\347\232\204\344\271\263\350\205\272\347\231\214\350\257\212\346\226\255 .rar" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter28\346\224\257\346\214\201\345\220\221\351\207\217\346\234\272\347\232\204\345\210\206\347\261\273\342\200\224\342\200\224\345\237\272\344\272\216\344\271\263\350\205\272\347\273\204\347\273\207\347\224\265\351\230\273\346\212\227\347\211\271\346\200\247\347\232\204\344\271\263\350\205\272\347\231\214\350\257\212\346\226\255 .rar" index 160c6ec92f675dd11254be961cdd07fd74ef91c9..5907b73513da794e7d748bd4bd179615777dd033 100644 Binary files "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter28\346\224\257\346\214\201\345\220\221\351\207\217\346\234\272\347\232\204\345\210\206\347\261\273\342\200\224\342\200\224\345\237\272\344\272\216\344\271\263\350\205\272\347\273\204\347\273\207\347\224\265\351\230\273\346\212\227\347\211\271\346\200\247\347\232\204\344\271\263\350\205\272\347\231\214\350\257\212\346\226\255 .rar" and "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter28\346\224\257\346\214\201\345\220\221\351\207\217\346\234\272\347\232\204\345\210\206\347\261\273\342\200\224\342\200\224\345\237\272\344\272\216\344\271\263\350\205\272\347\273\204\347\273\207\347\224\265\351\230\273\346\212\227\347\211\271\346\200\247\347\232\204\344\271\263\350\205\272\347\231\214\350\257\212\346\226\255 .rar" differ diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter29\346\224\257\346\214\201\345\220\221\351\207\217\346\234\272\347\232\204\345\233\236\345\275\222\346\213\237\345\220\210\342\200\224\342\200\224\346\267\267\345\207\235\345\234\237\346\212\227\345\216\213\345\274\272\345\272\246\351\242\204\346\265\213.rar" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter29\346\224\257\346\214\201\345\220\221\351\207\217\346\234\272\347\232\204\345\233\236\345\275\222\346\213\237\345\220\210\342\200\224\342\200\224\346\267\267\345\207\235\345\234\237\346\212\227\345\216\213\345\274\272\345\272\246\351\242\204\346\265\213.rar" index 178fc52ebc670e18ec18629f23af562c9947491d..2008529041b331a2c889bfd736e3b6e33b0f3722 100644 Binary files "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter29\346\224\257\346\214\201\345\220\221\351\207\217\346\234\272\347\232\204\345\233\236\345\275\222\346\213\237\345\220\210\342\200\224\342\200\224\346\267\267\345\207\235\345\234\237\346\212\227\345\216\213\345\274\272\345\272\246\351\242\204\346\265\213.rar" and "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter29\346\224\257\346\214\201\345\220\221\351\207\217\346\234\272\347\232\204\345\233\236\345\275\222\346\213\237\345\220\210\342\200\224\342\200\224\346\267\267\345\207\235\345\234\237\346\212\227\345\216\213\345\274\272\345\272\246\351\242\204\346\265\213.rar" differ diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter2\345\237\272\344\272\216\351\201\227\344\274\240\347\256\227\346\263\225\345\222\214\351\235\236\347\272\277\346\200\247\350\247\204\345\210\222\347\232\204\345\207\275\346\225\260\345\257\273\344\274\230\347\256\227\346\263\225 .rar" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter2\345\237\272\344\272\216\351\201\227\344\274\240\347\256\227\346\263\225\345\222\214\351\235\236\347\272\277\346\200\247\350\247\204\345\210\222\347\232\204\345\207\275\346\225\260\345\257\273\344\274\230\347\256\227\346\263\225 .rar" index 0653e09082449f3985643ef55d691f2b66b58748..57384cd77b6d13a2fd074f90e5396f932b8019ef 100644 Binary files "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter2\345\237\272\344\272\216\351\201\227\344\274\240\347\256\227\346\263\225\345\222\214\351\235\236\347\272\277\346\200\247\350\247\204\345\210\222\347\232\204\345\207\275\346\225\260\345\257\273\344\274\230\347\256\227\346\263\225 .rar" and "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter2\345\237\272\344\272\216\351\201\227\344\274\240\347\256\227\346\263\225\345\222\214\351\235\236\347\272\277\346\200\247\350\247\204\345\210\222\347\232\204\345\207\275\346\225\260\345\257\273\344\274\230\347\256\227\346\263\225 .rar" differ diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter3\345\237\272\344\272\216\351\201\227\344\274\240\347\256\227\346\263\225\347\232\204BP\347\245\236\347\273\217\347\275\221\347\273\234\344\274\230\345\214\226\347\256\227\346\263\225 .rar" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter3\345\237\272\344\272\216\351\201\227\344\274\240\347\256\227\346\263\225\347\232\204BP\347\245\236\347\273\217\347\275\221\347\273\234\344\274\230\345\214\226\347\256\227\346\263\225 .rar" index d31ecd0f57087db4883404f3d35728cc0a4f3cbc..87790e6d2b4ea965094bd1f5713aad712b8c35ee 100644 Binary files "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter3\345\237\272\344\272\216\351\201\227\344\274\240\347\256\227\346\263\225\347\232\204BP\347\245\236\347\273\217\347\275\221\347\273\234\344\274\230\345\214\226\347\256\227\346\263\225 .rar" and "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter3\345\237\272\344\272\216\351\201\227\344\274\240\347\256\227\346\263\225\347\232\204BP\347\245\236\347\273\217\347\275\221\347\273\234\344\274\230\345\214\226\347\256\227\346\263\225 .rar" differ diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter4sa_tsp.rar" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter4sa_tsp.rar" index 5605180bdac6c9d0a7e98e71c3ea7944a7b25975..89927a69962b955bcb1e2bbd996c7dbc2d90064d 100644 Binary files "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter4sa_tsp.rar" and "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter4sa_tsp.rar" differ diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter5\345\237\272\344\272\216\351\201\227\344\274\240\347\256\227\346\263\225\347\232\204LQR\346\216\247\345\210\266\345\231\250\344\274\230\345\214\226\350\256\276\350\256\241.rar" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter5\345\237\272\344\272\216\351\201\227\344\274\240\347\256\227\346\263\225\347\232\204LQR\346\216\247\345\210\266\345\231\250\344\274\230\345\214\226\350\256\276\350\256\241.rar" index 04a56c20a80b1d4d28187b5e530ce501bcc77480..68f73ab3eca2627f462f6202bc38705fc2d27e25 100644 Binary files "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter5\345\237\272\344\272\216\351\201\227\344\274\240\347\256\227\346\263\225\347\232\204LQR\346\216\247\345\210\266\345\231\250\344\274\230\345\214\226\350\256\276\350\256\241.rar" and "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter5\345\237\272\344\272\216\351\201\227\344\274\240\347\256\227\346\263\225\347\232\204LQR\346\216\247\345\210\266\345\231\250\344\274\230\345\214\226\350\256\276\350\256\241.rar" differ diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter6\351\201\227\344\274\240\347\256\227\346\263\225\345\267\245\345\205\267\347\256\261\350\257\246\350\247\243\345\217\212\345\272\224\347\224\250 .rar" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter6\351\201\227\344\274\240\347\256\227\346\263\225\345\267\245\345\205\267\347\256\261\350\257\246\350\247\243\345\217\212\345\272\224\347\224\250 .rar" index 2742d762ecc7a41d4f9ce50310a9fc1330395de6..4e93ac4c863e8fcba6670d71fdecd39700f28d35 100644 Binary files "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter6\351\201\227\344\274\240\347\256\227\346\263\225\345\267\245\345\205\267\347\256\261\350\257\246\350\247\243\345\217\212\345\272\224\347\224\250 .rar" and "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter6\351\201\227\344\274\240\347\256\227\346\263\225\345\267\245\345\205\267\347\256\261\350\257\246\350\247\243\345\217\212\345\272\224\347\224\250 .rar" differ diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter7\345\244\232\347\247\215\347\276\244\351\201\227\344\274\240\347\256\227\346\263\225\347\232\204\345\207\275\346\225\260\344\274\230\345\214\226\347\256\227\346\263\225.rar" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter7\345\244\232\347\247\215\347\276\244\351\201\227\344\274\240\347\256\227\346\263\225\347\232\204\345\207\275\346\225\260\344\274\230\345\214\226\347\256\227\346\263\225.rar" index 71dba70c518824bff9d103d90f53a939bb82ce2e..3af80300c450e33a256ac574f599d991d84fda31 100644 Binary files "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter7\345\244\232\347\247\215\347\276\244\351\201\227\344\274\240\347\256\227\346\263\225\347\232\204\345\207\275\346\225\260\344\274\230\345\214\226\347\256\227\346\263\225.rar" and "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter7\345\244\232\347\247\215\347\276\244\351\201\227\344\274\240\347\256\227\346\263\225\347\232\204\345\207\275\346\225\260\344\274\230\345\214\226\347\256\227\346\263\225.rar" differ diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter8\345\237\272\344\272\216\351\207\217\345\255\220\351\201\227\344\274\240\347\256\227\346\263\225\347\232\204\345\207\275\346\225\260\345\257\273\344\274\230\347\256\227\346\263\225 .rar" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter8\345\237\272\344\272\216\351\207\217\345\255\220\351\201\227\344\274\240\347\256\227\346\263\225\347\232\204\345\207\275\346\225\260\345\257\273\344\274\230\347\256\227\346\263\225 .rar" index 96a5015444c777ddf3616930c0c9b8f7623ed037..76b46d305677c0e3af9a8137f2fc64cd92259ef2 100644 Binary files "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter8\345\237\272\344\272\216\351\207\217\345\255\220\351\201\227\344\274\240\347\256\227\346\263\225\347\232\204\345\207\275\346\225\260\345\257\273\344\274\230\347\256\227\346\263\225 .rar" and "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter8\345\237\272\344\272\216\351\207\217\345\255\220\351\201\227\344\274\240\347\256\227\346\263\225\347\232\204\345\207\275\346\225\260\345\257\273\344\274\230\347\256\227\346\263\225 .rar" differ diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter9\345\237\272\344\272\216\351\201\227\344\274\240\347\256\227\346\263\225\347\232\204\345\244\232\347\233\256\346\240\207\344\274\230\345\214\226\347\256\227\346\263\225.rar" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter9\345\237\272\344\272\216\351\201\227\344\274\240\347\256\227\346\263\225\347\232\204\345\244\232\347\233\256\346\240\207\344\274\230\345\214\226\347\256\227\346\263\225.rar" index a25063057e734700ea68adac6c927177c7d49395..59e1477b4b6d6498e4cebea2cdf9fc140ebd85b8 100644 Binary files "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter9\345\237\272\344\272\216\351\201\227\344\274\240\347\256\227\346\263\225\347\232\204\345\244\232\347\233\256\346\240\207\344\274\230\345\214\226\347\256\227\346\263\225.rar" and "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/30\344\270\252\346\225\260\345\255\246\345\273\272\346\250\241\346\231\272\350\203\275\347\256\227\346\263\225\345\217\212MATLAB\347\250\213\345\272\217\344\273\243\347\240\201/chapter9\345\237\272\344\272\216\351\201\227\344\274\240\347\256\227\346\263\225\347\232\204\345\244\232\347\233\256\346\240\207\344\274\230\345\214\226\347\256\227\346\263\225.rar" differ diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21301(1).m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21301(1).m" index f2d5b22178e1225c99031f903b5eb12ddbf0fef7..a600508de82a0307abaebc120b9b3be2f71ba7a2 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21301(1).m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21301(1).m" @@ -1,3 +1,13 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4fff798d5c1590c200128e7afd56a178c4a74ac319c3135fba7417532e660012 -size 269 +function shili01 +h0=figure('toolbar','none',... + 'position',[198 56 350 300],... + 'name','实例01'); +h1=axes('parent',h0,... + 'visible','off'); +x=-pi:0.05:pi; +y=sin(x); +plot(x,y); +xlabel('自变量X'); +ylabel('函数值Y'); +title('SIN( )函数曲线'); +grid on \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21302.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21302.m" index 6ee3e6604eb30b02bf5573c3d2846f96b762541c..d761c7c63db9408cc52bff0358695943fdbcf710 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21302.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21302.m" @@ -1,3 +1,11 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:cbb9607fac6f703101e84095d9ab8edec50255c63dbc66d434a6aacc36f52874 -size 244 +function shili02 +h0=figure('toolbar','none',... + 'position',[200 150 450 350],... + 'name','实例02'); +x=-pi:0.05:pi; +y=sin(x)+cos(x); +plot(x,y,'-*r','linewidth',1); +grid on +xlabel('自变量X'); +ylabel('函数值Y'); +title('三角函数'); \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21303.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21303.m" index 6f2099253fc72f924b0a417fadf6b8cd92687491..be6e71bba3092981a4863c2d137a6617aea49175 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21303.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21303.m" @@ -1,3 +1,15 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ad1208e8d0017de05290bdfda2a2a82b9ee95a7ab77805bf85a8440191168479 -size 276 +function shili03 +h0=figure('toolbar','none',... + 'position',[200 150 450 350],... + 'name','实例03'); +x=-pi:0.05:pi; +y1=sin(x); +y2=cos(x); +plot(x,y1,... + '-*r',... + x,y2,... + '--og'); +grid on +xlabel('自变量X'); +ylabel('函数值Y'); +title('三角函数'); \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21304.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21304.m" index 45c61fae93ff17444b975dae9174b7e805608b44..aa724c1c616f34108905267e02f68c3e6402362e 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21304.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21304.m" @@ -1,3 +1,12 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0dbf2e8af8a2ae3465c1aeaff4ac703832150d1a7fb36994f27478384b985aaa -size 298 +function shili04 +h0=figure('toolbar','none',... + 'position',[200 150 450 250],... + 'name','实例04'); +x=0:900;a=1000;b=0.005; +y1=2*x; +y2=cos(b*x); +[haxes,hline1,hline2]=plotyy(x,y1,x,y2,'semilogy','plot'); +axes(haxes(1)) +ylabel('semilog plot'); +axes(haxes(2)) +ylabel('linear plot'); \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21305.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21305.m" index 8624190e40c15a682d30b40cf0cac9ca95a00583..1fbfb65b2cba43dc3c7f9f8a14fa9b4c75069b7d 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21305.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21305.m" @@ -1,3 +1,24 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4cb5e9f394dde50367f29bbb800bece274aac7fc48a4236875dbfeafd7535da9 -size 409 +function shili05 +h0=figure('toolbar','none',... + 'position',[200 150 450 250],... + 'name','实例05'); +t=0:pi/10:2*pi; +[x,y]=meshgrid(t); +subplot(2,2,1) +plot(sin(t),cos(t)) +axis equal + +subplot(2,2,2) +z=sin(x)-cos(y); +plot(t,z) +axis([0 2*pi -2 2]) + +subplot(2,2,3) +h=sin(x)+cos(y); +plot(t,h) +axis([0 2*pi -2 2]) + +subplot(2,2,4) +g=(sin(x).^2)-(cos(y).^2); +plot(t,g) +axis([0 2*pi -1 1]) \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21306.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21306.m" index 7f4c588a701af2077d99cdba8a7f9f2c19acd5a7..5693cfe1faea136085748aba94f2d1d14ed16a85 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21306.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21306.m" @@ -1,3 +1,20 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:86443eb863cd3a18afec105699fd23e9d1dd727e6101a5f56dbf9afde7dd8773 -size 543 +function shili06 +h0=figure('toolbar','none',... + 'position',[200 150 450 400],... + 'name','实例06'); +t=0:pi/10:2*pi; +h=plot(t,sin(t)); +xlabel('t=0到2\pi','fontsize',16); +ylabel('sin(t)','fontsize',16); +title('\it{从 0to2\pi 的正弦曲线}','fontsize',16) +x=get(h,'xdata'); +y=get(h,'ydata'); +imin=find(min(y)==y); +imax=find(max(y)==y); +text(x(imin),y(imin),... + ['\leftarrow最小值=',num2str(y(imin))],... + 'fontsize',16) +text(x(imax),y(imax),... + ['\leftarrow最大值=',num2str(y(imax))],... + 'fontsize',16) + \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21307.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21307.m" index 4f6e685e4df64aae6f7b0fad6d113541fd728ab6..b54efbba8a2e7ddc435cc7451793e163b19c6836 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21307.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21307.m" @@ -1,3 +1,14 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:cd28a78e1b01355a9c646354b183a8a7a53cc8f830c9059229e64041d4477763 -size 385 +function shili07 +h0=figure('toolbar','none',... + 'position',[200 150 450 350],... + 'name','实例07'); +tiao1=[562 548 224 545 41 445 745 512]; +tiao2=[47 48 57 58 54 52 65 48]; +t=0:7; +bar(t,tiao1) +xlabel('X轴'); +ylabel('TIAO1值'); +h1=gca; +h2=axes('position',get(h1,'position')); +plot(t,tiao2,'linewidth',3) +set(h2,'yaxislocation','right','color','none','xticklabel',[]) \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21308.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21308.m" index f143363c9c5a23400203dd1f0c9d5be6fa537d97..0d80aa9325ad9bf4af913f8e09a72c5cf9ff2217 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21308.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21308.m" @@ -1,3 +1,33 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3727bc6028cddc6e3bf4a9e773a08279170ef37e434cca66fca7e4b047185f7d -size 882 +function shili08 +h0=figure('toolbar','none',... + 'position',[200 150 450 250],... + 'name','实例08'); +x=91:95; +profits1=[88 75 84 93 77]; +profits2=[51 64 54 56 68]; +profits3=[42 54 34 25 24]; +profits4=[26 38 18 15 4]; +area(x,profits1,'facecolor',[0.5 0.9 0.6],... + 'edgecolor','b',... + 'linewidth',3) +hold on +area(x,profits2,'facecolor',[0.9 0.85 0.7],... + 'edgecolor','y',... + 'linewidth',3) +hold on +area(x,profits3,'facecolor',[0.3 0.6 0.7],... + 'edgecolor','r',... + 'linewidth',3) +hold on +area(x,profits4,'facecolor',[0.6 0.5 0.9],... + 'edgecolor','m',... + 'linewidth',3) +hold off +set(gca,'xtick',[91:95]) +set(gca,'layer','top') +gtext('\leftarrow第一季度销量') +gtext('\leftarrow第二季度销量') +gtext('\leftarrow第三季度销量') +gtext('\leftarrow第四季度销量') +xlabel('年','fontsize',16); +ylabel('销售量','fontsize',16); diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21309.M" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21309.M" index dd3af9322b0039c2b8ea9d64d47a26c280ee2dc8..de1f8a3123af9554408151d65c539c53168b484e 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21309.M" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21309.M" @@ -1,3 +1,25 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5a4c500444ad515f5f15af119d0f2fae923588ef3add27eff4657a8a129dfa85 -size 686 +function shili09 +h0=figure('toolbar','none',... + 'position',[200 150 450 250],... + 'name','实例09'); +t=[54 21 35; + 68 54 35; + 45 25 12; + 48 68 45; + 68 54 69]; +x=sum(t); +h=pie(x); +textobjs=findobj(h,'type','text'); +str1=get(textobjs,{'string'}); +val1=get(textobjs,{'extent'}); +oldext=cat(1,val1{:}); +names={'商品一:';'商品二:';'商品三:'}; +str2=strcat(names,str1); +set(textobjs,{'string'},str2) +val2=get(textobjs,{'extent'}); +newext=cat(1,val2{:}); +offset=sign(oldext(:,1)).*(newext(:,3)-oldext(:,3))/2; +pos=get(textobjs,{'position'}); +textpos=cat(1,pos{:}); +textpos(:,1)=textpos(:,1)+offset; +set(textobjs,{'position'},num2cell(textpos,[3,2])) \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21310.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21310.m" index ce1018c8bb8ad625db22a46e3fb99449bd7a94c1..3b1934848b098bc3a4a38eef620ab80d7d507105 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21310.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21310.m" @@ -1,3 +1,16 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:572b9051e1bf797f38e1689b37ab1c40b32fd11dbc2644fe93d683688d10b281 -size 340 +function shili10 +h0=figure('toolbar','none',... + 'position',[200 150 450 400],... + 'name','实例10'); +a=0.01; +b=0.5; +t=0:10; +f=exp(-a*t).*sin(b*t); +stairs(t,f) +hold on +plot(t,f,':*') +hold off +glabel='函数e^{-(\alpha*t)}sin\beta*t的阶梯图'; +gtext(glabel,'fontsize',16) +xlabel('t=0:10','fontsize',16) +axis([0 10 -1.2 1.2]) \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21311.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21311.m" index abb627d2e267aa1d366e66503e3362516fae0012..7cd44fec0b63139cb5abc1c3cad9e6549e7e8f69 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21311.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21311.m" @@ -1,3 +1,16 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5e6967afdaf558dfd4b9a86b89b02ae5a109b2a0a7aa4b5aa521963736d11d18 -size 359 +function shili11 +h0=figure('toolbar','none',... + 'position',[200 150 450 350],... + 'name','实例11'); +x=0:pi/20:2*pi; +y1=sin(x); +y2=cos(x); +h1=stem(x,y1+y2); +hold on +h2=plot(x,y1,'^r',x,y2,'*g'); +hold off +h3=[h1(1);h2]; +legend(h3,'y1+y2','y1=sin(x)','y2=cos(x)') +xlabel('自变量X'); +ylabel('函数值Y'); +title('正弦函数与余弦函数的线性组合'); \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21312.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21312.m" index e468e945b8bfa8155e6e27775f5691d199004bac..223f98a02085c28ece0c479c39b5c7a907f8cbd8 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21312.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21312.m" @@ -1,3 +1,18 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d662a098e5e3cc73c43a4b974b3d70e338b194b7105897afd9829374bb33ade1 -size 420 +function shili12 +h0=figure('toolbar','none',... + 'position',[200 150 450 250],... + 'name','实例12'); +winddirection=[54 24 65 84 + 256 12 235 62 + 125 324 34 254]; +windpower=[2 5 5 3 + 6 8 12 7 + 6 14 10 8]; +rdirection=winddirection*pi/180; +[x,y]=pol2cart(rdirection,windpower); +compass(x,y); +desc={'风向和风力', + '北京气象台', + '10月1日0:00到', + '10月1日12:00'}; +gtext(desc) \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21313.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21313.m" index 8732647577d5550edbe1bf8bc3a0c120763902de..1dc57da309abbb4d5e8708058cf9ea70e4389a08 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21313.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21313.m" @@ -1,3 +1,16 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:52ad866e12f1bbe1ae8586387d134d372ec04d1e755875c345c521f053630544 -size 377 +function shili13 +h0=figure('toolbar','none',... + 'position',[200 150 450 250],... + 'name','实例13'); +[th,r]=meshgrid((0:10:360)*pi/180,0:0.05:1); +[x,y]=pol2cart(th,r); +z=x+i*y; +f=(z.^4-1).^(0.25); +contour(x,y,abs(f),20) +axis equal +xlabel('实部','fontsize',16); +ylabel('虚部','fontsize',16); +h=polar([0 2*pi],[0 1]); +delete(h) +hold on +contour(x,y,abs(f),20) \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21314.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21314.m" index 057ea4bbcf92f6e3506f67555206d56d602321e9..55a236da8388d3f201ac7a18d1ec57b15b15b653 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21314.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21314.m" @@ -1,3 +1,26 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3c123c935a182f114861fc015bf97111f665ddffc79f5a42816d49ceacb64f29 -size 480 +function shili14 +h0=figure('toolbar','none',... + 'position',[200 150 450 250],... + 'name','实例14'); +axis([0 10 0 10]); +hold on +x=[]; +y=[]; +n=0; +disp('单击鼠标左键点取需要的点'); +disp('单击鼠标右键点取最后一个点'); +but=1; +while but==1 + [xi,yi,but]=ginput(1); + plot(xi,yi,'bo') + n=n+1; + disp('单击鼠标左键点取下一个点'); + x(n,1)=xi; + y(n,1)=yi; +end +t=1:n; +ts=1:0.1:n; +xs=spline(t,x,ts); +ys=spline(t,y,ts); +plot(xs,ys,'r-'); +hold off \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21315.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21315.m" index f91e711ad01a0b81f4a17f7fed8afadff38d0820..dd5782eda089db48a2746f14bebf8d81bbddc58d 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21315.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21315.m" @@ -1,3 +1,17 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:cd3787900d5ea797f4896c8489d03414707227d1831b394c654be09520a6a525 -size 404 +function shili15 +h0=figure('toolbar','none',... + 'position',[200 150 450 250],... + 'name','实例15'); +axis equal +m=moviein(20,gcf); +set(gca,'nextplot','replacechildren') +h=uicontrol('style','slider','position',... + [100 10 500 20],'min',1,'max',20) +for j=1:20 + plot(fft(eye(j+16))) + set(h,'value',j) + m(:,j)=getframe(gcf); +end +clf; +axes('position',[0 0 1 1]); +movie(m,30) \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21316.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21316.m" index 974c688eed804793e08680c9a1b30f35c3d2648c..6f2d3602a559109d8a06fe17a880645e82238e86 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21316.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21316.m" @@ -1,3 +1,26 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6a8470a2194dd5fe357671ae7859f708c8d51dea8c92938fcb18538918bdfb69 -size 560 +function shili26 +h0=figure('toolbar','none',... + 'position',[200 150 450 250],... + 'name','实例16'); +A=[-8/3 0 0;0 -10 10;0 28 -1]; +y=[35 -10 -7]'; +h=0.01; +P=plot3(y(1),y(2),y(3),'.',... + 'erasemode','none',... + 'markersize',5); +axis([0 50 -25 25 -25 25]) +hold on +for i=1:2000 + P=findobj('xdata',y(1),... + 'ydata',y(2),... + 'zdata',y(3)); + A(1,3)=y(2); + A(3,1)=-y(2); + ydot=A*y; + y=y+h*ydot; + set(P,'xdata',y(1),... + 'ydata',y(2),... + 'zdata',y(3)) + drawnow + i=i+1; +end diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21317.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21317.m" index dfcb663ab1df97c5b6503e9057b4458767d39e7e..8dd5f6c4f055e3b82581f51d02c1666c2d21842a 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21317.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21317.m" @@ -1,3 +1,13 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:39f255e96370a78ef651e89e0d33e43f9cd95d5594bf3e3257490a8d768c3906 -size 287 +function shili17 +h0=figure('toolbar','none',... + 'position',[200 150 450 250],... + 'name','实例17'); +t=(1:2:15)*pi/8; +x=sin(t); +y=cos(t); +fill(x,y,'r') +axis square off +text(0,0,'STOP',... + 'color',[1 1 1],... + 'fontsize',50,... + 'horizontalalignment','center') \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21318.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21318.m" index 2d0d6f9fa437d8a59a3e8dcf295d5cc29e4789a7..8a32104ddd2ac46c045df22357f3cda711a86b08 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21318.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21318.m" @@ -1,3 +1,27 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:64b2fba6eb07f4d8d8d5235cabdcdd3e4bd85a908bf1e2dd6f182c597e674369 -size 443 +function shili18 +h0=figure('toolbar','none',... + 'position',[200 150 450 250],... + 'name','实例18'); +subplot(2,2,1) +x=-3:0.2:3; +y=exp(-x.*x); +bar(x,y) +title('2-D Bar Chart') + +subplot(2,2,2) +x=-3:0.2:3; +y=exp(-x.*x); +bar3(x,y,'r') +title('3-D Bar Chart') + +subplot(2,2,3) +x=-3:0.2:3; +y=exp(-x.*x); +stairs(x,y) +title('Stair Chart') + +subplot(2,2,4) +x=-3:0.2:3; +y=exp(-x.*x); +barh(x,y) +title('Horizontal Bar Chart') diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21319.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21319.m" index 6d65a20188551870e07b153c48306ea227622870..e4aef68d3a9ab03f63797641820598d861de0a01 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21319.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21319.m" @@ -1,3 +1,33 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:61ee88171e5c98b3cccf92b8469f69bacf174a54ee6c462aa5d340442f0f7a40 -size 583 +function shili19 +h0=figure('toolbar','none',... + 'position',[200 150 450 400],... + 'name','实例19'); +subplot(2,1,1) +x=linspace(0,2*pi); +y1=sin(x); +y2=cos(x); +y3=sin(x)+cos(x); +z1=zeros(size(x)); +z2=0.5*z1; +z3=z1; +plot3(x,y1,z1,x,y2,z2,x,y3,z3) +grid on +xlabel('X轴'); +ylabel('Y轴'); +zlabel('Z轴'); +title('Figure1:3-D Plot') + +subplot(2,1,2) +x=linspace(0,2*pi); +y1=sin(x); +y2=cos(x); +y3=sin(x)+cos(x); +z1=zeros(size(x)); +z2=0.5*z1; +z3=z1; +plot3(x,z1,y1,x,z2,y2,x,z3,y3) +grid on +xlabel('X轴'); +ylabel('Y轴'); +zlabel('Z轴'); +title('Figure2:3-D Plot') \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21320.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21320.m" index 6bf7a8d6cd388aaba3239f590a6614fc6a1be97e..3e86551395397076104d131d1727e24b9eed1671 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21320.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21320.m" @@ -1,3 +1,17 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:368f880e816f75a4d991191b29991d3a99aa44b23313ae454e21750f35d34d80 -size 309 +function shili20 +h0=figure('toolbar','none',... + 'position',[200 150 450 300],... + 'name','实例20'); +subplot(1,2,1) +[x,y,z]=sphere(10); +mesh(x,y,z) +axis off +title('Figure1:Opaque') +hidden on + +subplot(1,2,2) +[x,y,z]=sphere(10); +mesh(x,y,z) +axis off +title('Figure2:Transparent') +hidden off \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21321.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21321.m" index a0cc785a302aa73e6cf6f6566fdd023ee0f6e6d6..6c249ed2d75f579a591be230a3d74c973c70c5b1 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21321.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21321.m" @@ -1,3 +1,29 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6d7ccc6d56891d967b48f58afc642866dab2c6e9096950211be20a030f62435a -size 541 +function shili21 +h0=figure('toolbar','none',... + 'position',[200 100 450 450],... + 'name','实例21'); +[x,y,z]=peaks(30); +subplot(2,1,1) +x=x(1,:); +y=y(:,1); +i=find(y>0.8&y<1.2); +j=find(x>-0.6&x<0.5); +z(i,j)=nan*z(i,j); +surfc(x,y,z) +xlabel('X轴'); +ylabel('Y轴'); +zlabel('Z轴'); +title('Figure1:surfc函数形成的曲面') + + +subplot(2,1,2) +x=x(1,:); +y=y(:,1); +i=find(y>0.8&y<1.2); +j=find(x>-0.6&x<0.5); +z(i,j)=nan*z(i,j); +surfl(x,y,z) +xlabel('X轴'); +ylabel('Y轴'); +zlabel('Z轴'); +title('Figure2:surfl函数形成的曲面') diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21322.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21322.m" index 38d7822e68f5f9457607c72d3bbe37fdd40d3108..bc8ea1e3929b85d436c219f86df2953a22cd0079 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21322.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21322.m" @@ -1,3 +1,20 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e398f601f395b077b1092854adf12f8c55caeda52a958c35e9fb17d494139cc5 -size 409 +function shili22 +h0=figure('toolbar','none',... + 'position',[200 150 550 350],... + 'name','实例22'); +subplot(1,2,1) +x=rand(1,20); +y=rand(1,20); +z=peaks(x,y*pi); +t=delaunay(x,y); +trimesh(t,x,y,z) +hidden off +title('Figure1:Triangular Surface Plot'); + +subplot(1,2,2) +x=rand(1,20); +y=rand(1,20); +z=peaks(x,y*pi); +t=delaunay(x,y); +trisurf(t,x,y,z) +title('Figure1:Triangular Surface Plot'); \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21323.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21323.m" index 23432b13f2a8bdd0525e54a0f27d1a8463441381..53f849ff63cc136f06e589b78a9a82c3c8581082 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21323.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21323.m" @@ -1,3 +1,39 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:468a71c6e8d64f94d5496c584ed4cd5a6004a5f3ade2b9e35e2fd3a45cbbb85d -size 654 +function shili23 +h0=figure('toolbar','none',... + 'position',[200 150 450 350],... + 'name','实例23'); +x=-5:0.5:5; +[x,y]=meshgrid(x); +r=sqrt(x.^2+y.^2)+eps; +z=sin(r)./r; +subplot(2,2,1) +surf(x,y,z) +xlabel('X-axis') +ylabel('Y-axis') +zlabel('Z-axis') +title('Figure1') +view(-37.5,30) + +subplot(2,2,2) +surf(x,y,z) +xlabel('X-axis') +ylabel('Y-axis') +zlabel('Z-axis') +title('Figure2') +view(-37.5+90,30) + +subplot(2,2,3) +surf(x,y,z) +xlabel('X-axis') +ylabel('Y-axis') +zlabel('Z-axis') +title('Figure3') +view(-37.5,60) + +subplot(2,2,4) +surf(x,y,z) +xlabel('X-axis') +ylabel('Y-axis') +zlabel('Z-axis') +title('Figure4') +view(180,0) \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21324.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21324.m" index 676c667350e421929d432a70814686652d3c497f..dde626088e0d5e09d90ad6d4ddffaa5c739748e2 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21324.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21324.m" @@ -1,3 +1,35 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:25744f09feab34025fdcaf67500627dd3fe076e799558586245594e3dc4847b9 -size 566 +function shili24 +h0=figure('toolbar','none',... + 'position',[200 150 450 350],... + 'name','实例24'); +subplot(2,2,1) +z=peaks; +ribbon(z) +title('Figure1') + +subplot(2,2,2) +[x,y,z]=peaks(15); +[dx,dy]=gradient(z,0.5,0.5); +contour(x,y,z,10) +hold on +quiver(x,y,dx,dy) +hold off +title('Figure2') + +subplot(2,2,3) +[x,y,z]=peaks(15); +[nx,ny,nz]=surfnorm(x,y,z); +surf(x,y,z) +hold on +quiver3(x,y,z,nx,ny,nz) +hold off +title('Figure3') + +subplot(2,2,4) +x=rand(3,5); +y=rand(3,5); +z=rand(3,5); +c=rand(3,5); +fill3(x,y,z,c) +grid on +title('Figure4') \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21325.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21325.m" index 45717aa489534a7b11af1b95a2ab8e916adb568b..63d92a89d374817466ceadf89e57fe7501c5cd31 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21325.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21325.m" @@ -1,3 +1,28 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ade3a72dd4ba1b4dadd664bffce84dc740f9ac1d27a414a197c7a8c2209923e1 -size 623 +function shili25 +h0=figure('toolbar','none',... + 'position',[200 150 450 250],... + 'name','实例25'); +vert=[1 1 1;1 2 1; + 2 2 1;2 1 1; + 1 1 2;1 2 2; + 2 2 2;2 1 2]; +fac=[1 2 3 4;2 6 7 3; + 4 3 7 8;1 5 8 4; + 1 2 6 5;5 6 7 8]; +grid off +sphere(36) +h=findobj('type','surface'); +set(h,'facelighting','phong',... + 'facecolor',... + 'interp',... + 'edgecolor',[0.4 0.4 0.4],... + 'backfacelighting',... + 'lit') +hold on +patch('faces',fac,'vertices',vert,... + 'facecolor','y'); +light('position',[1 3 2]); +light('position',[-3 -1 3]); +material shiny +axis vis3d off +hold off \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21326.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21326.m" index 743f6ab42b686036afc9520aa238f96b05e1a5b9..773d0d9fd33c3ddd67c3404a0bffe83e5d52294f 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21326.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21326.m" @@ -1,3 +1,25 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ecd78f6f7fbdc94f40883e7ec75c9850760ed8f6cc40b142fec06b12df6834dd -size 375 +function shili26 +h0=figure('toolbar','none',... + 'position',[200 50 450 450],... + 'name','实例26'); +subplot(2,1,1) +x=[5 2 1 + 8 7 3 + 9 8 6 + 5 5 5 + 4 3 2]; +bar(x) +xlabel('X轴'); +ylabel('Y轴'); +title('第一子图'); + +subplot(2,1,2) +y=[5 2 1 + 8 7 3 + 9 8 6 + 5 5 5 + 4 3 2]; +barh(y) +xlabel('X轴'); +ylabel('Y轴'); +title('第二子图'); \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21327.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21327.m" index 12fd23820e05b31c9920797f7e7a9197a2c26083..4b659a31a0294e3302a6a674281a18acb3ee01cb 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21327.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21327.m" @@ -1,3 +1,43 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:aa0f5233d12beaf4d2eb36a929578ecd336d15c1e90d9eaa72855589d625ae72 -size 608 +function shili27 +h0=figure('toolbar','none',... + 'position',[200 150 450 350],... + 'name','实例27'); +subplot(2,2,1) +sphere +shading flat +camlight left +camlight right +lighting flat +colorbar +axis off +title('Figure1') + +subplot(2,2,2) +sphere +shading flat +camlight left +camlight right +lighting gouraud +colorbar +axis off +title('Figure2') + +subplot(2,2,3) +sphere +shading interp +camlight right +camlight left +lighting phong +colorbar +axis off +title('Figure3') + +subplot(2,2,4) +sphere +shading flat +camlight left +camlight right +lighting none +colorbar +axis off +title('Figure4') \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21328.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21328.m" index bce970cc4ffa7a2dc2cb6f035126d3de3f552b96..aab445ebe4f71c4790bda228fdc5ab2c0deffd9a 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21328.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21328.m" @@ -1,3 +1,20 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:caa1bbabcb37e6ecc76c5381af6a7a4fc985b60d9e7f33bd5a10266340ff616b -size 357 +function shili28 +h0=figure('toolbar','none',... + 'position',[200 150 450 350],... + 'name','实例28'); +subplot(2,1,1) +alpha=90:-10:0; +r=ones(size(alpha)); +m=alpha*pi/180; +n=r*10; +[u,v]=pol2cart(m,n); +feather(u,v) +title('羽状图') +axis([0 20 0 10]) + +subplot(2,1,2) +t=0:0.5:10; +x=0.05+i; +y=exp(-x*t); +feather(y) +title('复数矩阵的羽状图') \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21329.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21329.m" index bc02997d5528e9677318a756c2fdfc118d2b9406..ef2087aee39050c18b11efd8787d5b1b5caefcfe 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21329.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21329.m" @@ -1,3 +1,26 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c8e63df3f6f72e63f719d639e6c05cda767538475ba633263bf93637d98eab52 -size 575 +function shili29 +h0=figure('toolbar','none',... + 'position',[200 150 450 250],... + 'name','实例29'); +[x,y,z]=meshgrid(-2:0.1:2,... + -2:0.1:2,... + -2:0.1:2); +v=x.*exp(-x.^2-y.^2-z.^2); +grid on +for i=-2:0.5:2; + h1=surf(linspace(-2,2,20),... + linspace(-2,2,20),... + zeros(20)+i); + rotate(h1,[1 -1 1],30) + dx=get(h1,'xdata'); + dy=get(h1,'ydata'); + dz=get(h1,'zdata'); + delete(h1) + slice(x,y,z,v,[-2 2],2,-2) + hold on + slice(x,y,z,v,dx,dy,dz) + hold off + axis tight + view(-5,10) + drawnow +end \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21330.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21330.m" index b4cf0cfa7992e323c58c1e91a958a7dca00c28b1..628f7800a6b5ac001e5e82cd1f6248d9dc36e8e0 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21330.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21330.m" @@ -1,3 +1,26 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7ab38c106e2ccba5074da70e6b58265c65a50fa83fbcb97755d5869e2d1ea8c9 -size 555 +function shili30 +h0=figure('toolbar','none',... + 'position',[200 150 450 250],... + 'name','实例30'); +[x,y,z]=meshgrid(-2:0.1:2,... + -2:0.1:2,... + -2:0.1:2); +v=x.*exp(-x.^2-y.^2-z.^2); +[dx,dy,dz]=cylinder; +slice(x,y,z,v,[-2 2],2,-2) +for i=-2:0.2:2 + h=surface(dx+i,dy,dz); + rotate(h,[1 0 0],90) + xp=get(h,'xdata'); + yp=get(h,'ydata'); + zp=get(h,'zdata'); + delete(h) + hold on + hs=slice(x,y,z,v,xp,yp,zp); + axis tight + xlim([-3 3]) + view(-10,35) + drawnow + delete(hs) + hold off +end \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21331.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21331.m" index 531ea44bb690986f46a84fee3c1c4f226d6bbbf6..ad1d56b530193660fda70b8961e449db9e35438c 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21331.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21331.m" @@ -1,3 +1,30 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2130829f13d9a0c2fb4d2064c2f4b1707ea3f9a058a7108f3932b683b9e20e14 -size 632 +function shili31 +h0=figure('toolbar','none',... + 'position',[200 150 550 250],... + 'name','实例31'); +subplot(1,2,1) +x=rand(100,1)*16-8; +y=rand(100,1)*16-8; +r=sqrt(x.^2+y.^2)+eps; +z=sin(r)./r; +xlin=linspace(min(x),max(x),33); +ylin=linspace(min(y),max(y),33); +[X,Y]=meshgrid(xlin,ylin); +Z=griddata(x,y,z,X,Y,'cubic'); +mesh(X,Y,Z) +axis tight +hold on +plot3(x,y,z,'.','Markersize',20) + +subplot(1,2,2) +k=5; +n=2^k-1; +theta=pi*(-n:2:n)/n; +phi=(pi/2)*(-n:2:n)'/n; +X=cos(phi)*cos(theta); +Y=cos(phi)*sin(theta); +Z=sin(phi)*ones(size(theta)); +colormap([0 0 0;1 1 1]) +C=hadamard(2^k); +surf(X,Y,Z,C) +axis square \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21332.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21332.m" index b5f7e592b248ae07e8f0f93bbdd78196ec33b6cf..92da3dc7cbebd45521e5f05efc072876b72bca6e 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21332.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21332.m" @@ -1,3 +1,73 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:acda6119a337d200c8d5a0c649d0bf9b4521d6cc8831f4609014a07f79532540 -size 2003 +h0=figure('toolbar','none',... + 'position',[198 56 408 468],... + 'name','实例32'); +h1=axes('parent',h0,... + 'position',[0.15 0.45 0.7 0.5],... + 'visible','on'); +t=0:pi/24:4*pi; +y=sin(t); +plot(t,y,'b') +n=length(t); +h=line('color',[0 0.5 0.5],... + 'linestyle','.',... + 'markersize',25,... + 'erasemode','xor'); +k1=uicontrol('parent',h0,... + 'style','pushbutton',... + 'position',[80 100 50 30],... + 'string','开始',... + 'callback',[... + 'i=1;',... + 'k=1;,',... + 'm=0;,',... + 'while 1,',... + 'if k==0,',... + 'break,',... + 'end,',... + 'if k~=0,',... + 'set(h,''xdata'',t(i),''ydata'',y(i)),',... + 'drawnow;,',... + 'i=i+1;,',... + 'if i>n,',... + 'm=m+1;,',... + 'i=1;,',... + 'end,',... + 'end,',... + 'end']); +k2=uicontrol('parent',h0,... + 'style','pushbutton',... + 'position',[180 100 50 30],... + 'string','停止',... + 'callback',[... + 'k=0;,',... + 'set(e1,''string'',m),',... + 'p=get(h,''xdata'');,',... + 'q=get(h,''ydata'');,',... + 'set(e2,''string'',p);,',... + 'set(e3,''string'',q)']); +k3=uicontrol('parent',h0,... + 'style','pushbutton',... + 'position',[280 100 50 30],... + 'string','关闭',... + 'callback','close'); +e1=uicontrol('parent',h0,... + 'style','edit',... + 'position',[60 30 60 20]); +t1=uicontrol('parent',h0,... + 'style','text',... + 'string','循环次数',... + 'position',[60 50 60 20]); +e2=uicontrol('parent',h0,... + 'style','edit',... + 'position',[180 30 50 20]); +t2=uicontrol('parent',h0,... + 'style','text',... + 'string','终点的X坐标值',... + 'position',[155 50 100 20]); +e3=uicontrol('parent',h0,... + 'style','edit',... + 'position',[300 30 50 20]); +t3=uicontrol('parent',h0,... + 'style','text',... + 'string','终点的Y坐标值',... + 'position',[275 50 100 20]); \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21333.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21333.m" index 3e73acca4da768e9756f6b550fe7702e3750bfc2..bbabc63e8eb1c074e3592346c1a319a599b47d75 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21333.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21333.m" @@ -1,3 +1,32 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:72f0f2bd4f03dbf26cabbc0b37d08b93d0c04a8f9e9afa21f6988a3a62a1fc13 -size 737 +h0=figure('toolbar','none',... + 'position',[200 150 450 250],... + 'name','实例33'); +x=0:0.5:2*pi; +y=sin(x); +h=plot(x,y); +grid on +huidiao=[... + 'if i==1,',... + 'i=0;,',... + 'y=cos(x);,',... + 'delete(h),',... + 'set(hm,''string'',''正弦函数''),',... + 'h=plot(x,y);,',... + 'grid on,',... + 'else if i==0,',... + 'i=1;,',... + 'y=sin(x);,',... + 'set(hm,''string'',''余弦函数''),',... + 'delete(h),',... + 'h=plot(x,y);,',... + 'grid on,',... + 'end,',... + 'end']; +hm=uicontrol(gcf,'style','pushbutton',... + 'string','余弦函数',... + 'callback',huidiao); +i=1; +set(hm,'position',[250 20 60 20]); +set(gca,'position',[0.2 0.2 0.6 0.6]) +title('按钮的使用') +hold on \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21334.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21334.m" index a677bfabde299445e7efbb97be82cf50944cd7ca..99707c962d4aa51c33d36df5a2f99704bf9e55c5 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21334.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21334.m" @@ -1,3 +1,27 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5559f97ce9eaef3d677b02f15507a8ec2389c7033755162b2649126324d0f20f -size 704 +h0=figure('toolbar','none',... + 'position',[200 150 450 250],... + 'name','实例34'); +x=0:0.5:2*pi; +y=sin(x); +plot(x,y) +huidiao1=[... + 'set(h_toggle2,''value'',0),',... + 'grid on,',... + ]; +huidiao2=[... + 'set(h_toggle1,''value'',0),',... + 'grid off,',... + ]; +h_toggle1=uicontrol(gcf,'style','togglebutton',... + 'string','grid on',... + 'value',0,... + 'position',[20 45 50 20],... + 'callback',huidiao1); + +h_toggle2=uicontrol(gcf,'style','togglebutton',... + 'string','grid off',... + 'value',0,... + 'position',[20 20 50 20],... + 'callback',huidiao2); +set(gca,'position',[0.2 0.2 0.6 0.6]) +title('开关按钮的使用') \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21335.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21335.m" index 2353aeb5fc0b7e6a3c65456caf7a10ece52cc8fa..5d9bee36846ace480652f251a11a067a63571eda 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21335.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21335.m" @@ -1,3 +1,34 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:639a8dd4b7becc529fb226aaaeec9e924570d4e25e3f106789b077725563481b -size 1038 +h0=figure('toolbar','none',... + 'position',[200 150 350 250],... + 'name','实例35'); +f='Please input the letter'; +huidiao1=[... + 'g=upper(f);,',... + 'set(h2_edit,''string'',g),',... + ]; +huidiao2=[... + 'g=lower(f);,',... + 'set(h2_edit,''string'',g),',... + ]; +h1_edit=uicontrol(gcf,'style','edit',... + 'position',[100 200 100 50],... + 'HorizontalAlignment','left',... + 'string','Please input the letter',... + 'callback','f=get(h1_edit,''string'');',... + 'background','w',... + 'max',5,... + 'min',1); +h2_edit=uicontrol(gcf,'style','edit',... + 'HorizontalAlignment','left',... + 'position',[100 100 100 50],... + 'background','w',... + 'max',5,... + 'min',1); +h1_button=uicontrol(gcf,'style','pushbutton',... + 'string','小写变大写',... + 'position',[100 45 100 20],... + 'callback',huidiao1); +h2_button=uicontrol(gcf,'style','pushbutton',... + 'string','大写变小写',... + 'position',[100 20 100 20],... + 'callback',huidiao2); \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21336.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21336.m" index ddbe67e2db7acca034596da8c1e65caa0c0f9269..2c1e1f4fe82abcd5f6a2de8db54c2cd306433828 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21336.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21336.m" @@ -1,3 +1,40 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9716509d9222cec73e43e57934ba71538bf142e12ce68a0ce235efa084c5a15f -size 1028 +h0=figure('toolbar','none',... + 'position',[200 150 450 250],... + 'name','实例36'); +x=0:0.5:2*pi; +y=sin(x); +h=plot(x,y); +grid on +hm=uicontrol(gcf,'style','popupmenu',... + 'string',... + 'sin(x)|cos(x)|sin(x)+cos(x)|exp(-sin(x))',... + 'position',[250 20 50 20]); +set(hm,'value',1) +huidiao=[... + 'v=get(hm,''value'');,',... + 'switch v,',... + 'case 1,',... + 'delete(h),',... + 'y=sin(x);,',... + 'h=plot(x,y);,',... + 'grid on,',... + 'case 2,',... + 'delete(h),',... + 'y=cos(x);,',... + 'h=plot(x,y);,',... + 'grid on,',... + 'case 3,',... + 'delete(h),',... + 'y=sin(x)+cos(x);,',... + 'h=plot(x,y);,',... + 'grid on,',... + 'case 4,',... + 'delete(h),',... + 'y=exp(-sin(x));,',... + 'h=plot(x,y);,',... + 'grid on,',... + 'end']; +set(hm,'callback',huidiao) +set(gca,'position',[0.2 0.2 0.6 0.6]) +title('弹出式菜单的使用') +hold on \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21337.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21337.m" index 96f54b81ee4af084bd5e1d49180568810359a78b..5d5dc64e13f28d493dbe79bf519702518a890267 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21337.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21337.m" @@ -1,3 +1,23 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3177c949d8bebb557ff01fb6faa55c3c6a6ac160b5d34a93d4aecd815616a442 -size 596 +h0=figure('toolbar','none',... + 'position',[200 150 450 250],... + 'name','实例37'); +[x,y]=meshgrid(-8:0.5:8); +r=sqrt(x.^2+y.^2)+eps; +z=sin(r)./r; +h0=mesh(x,y,z); +h1=axes('position',... + [0.2 0.2 0.5 0.5],... + 'visible','off'); +htext=uicontrol(gcf,... + 'units','points',... + 'position',[20 30 45 15],... + 'string','brightness',... + 'style','text'); +hslider=uicontrol(gcf,... + 'units','points',... + 'position',[10 10 300 15],... + 'min',-1,... + 'max',1,... + 'style','slider',... + 'callback',... + 'brighten(get(hslider,''value''))'); \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21338.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21338.m" index 29c9120b9db90ba34256a633613db77f4998dc20..59d770ad4c72c3f9535ad03babfb8d12fc29f61d 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21338.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21338.m" @@ -1,3 +1,26 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:96791449b17c55300e5095bbb0c8a70f68ef53b8f63fa74ce94d82213626c0e7 -size 721 +h0=figure('toolbar','none',... + 'position',[200 150 450 250],... + 'name','实例38'); +[x,y]=meshgrid(-8:0.5:8); +r=sqrt(x.^2+y.^2)+eps; +z=sin(r)./r; +h0=mesh(x,y,z); +hlist=uicontrol(gcf,'style','listbox',... + 'string','default|spring|summer|autumn|winter',... + 'max',5,... + 'min',1,... + 'position',[20 20 80 100],... + 'callback',[... + 'k=get(hlist,''value'');,',... + 'switch k,',... + 'case 1,',... + 'colormap default,',... + 'case 2,',... + 'colormap spring,',... + 'case 3,',... + 'colormap summer,',... + 'case 4,',... + 'colormap autumn,',... + 'case 5,',... + 'colormap winter,',... + 'end']); \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21339.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21339.m" index 98b52741b6074895bf84ed08dfd9ec671971927a..95010cc6cd32521656445bae2fc0eddc96b8bab8 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21339.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21339.m" @@ -1,3 +1,23 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c8f208bc0d6862bdfc2a78e1b8bac736686832823044eb73a31796ce88ee195a -size 666 +h0=figure('toolbar','none',... + 'position',[200 150 450 250],... + 'name','实例39'); +x=0:0.5:2*pi; +y=cos(x); +h=plot(x,y); +grid on +set(gcf,'toolbar','none') +hm=uimenu('label','example'); +huidiao1=[... + 'set(hm_gridon,''checked'',''on''),',... + 'set(hm_gridoff,''checked'',''off''),',... + 'grid on']; +huidiao2=[... + 'set(hm_gridoff,''checked'',''on''),',... + 'set(hm_gridon,''checked'',''off''),',... + 'grid off']; +hm_gridon=uimenu(hm,'label','grid on',... + 'checked','on',... + 'callback',huidiao1); +hm_gridoff=uimenu(hm,'label','grid off',... + 'checked','off',... + 'callback',huidiao2); \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21340.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21340.m" index 38d4c4c2b230c601c64cb6a0c608b766cd76c95f..d76f4a8fb39d1bc2a41a14dd7ac9976a76ed78c5 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21340.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21340.m" @@ -1,3 +1,69 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:08b833a9441b513accbbb951d3dd9a3b5e0eb76447a0fdd935243e77837561e9 -size 2235 +h0=figure('toolbar','none',... + 'position',[200 150 450 250],... + 'name','实例40'); +h1=uimenu(gcf,'label','函数'); +h11=uimenu(h1,'label','轮廓图',... + 'callback',[... + 'set(h31,''checked'',''on''),',... + 'set(h32,''checked'',''off''),',... + '[x,y,z]=peaks;,',... + 'contour3(x,y,z,30)']); +h12=uimenu(h1,'label','高斯分布',... + 'callback',[... + 'set(h31,''checked'',''on''),',... + 'set(h32,''checked'',''off''),',... + 'mesh(peaks);,',... + 'axis tight']); +h13=uimenu(h1,'label','Sinc函数',... + 'callback',[... + 'set(h31,''checked'',''on''),',... + 'set(h32,''checked'',''off''),',... + '[x,y]=meshgrid(-8:0.5:8);,',... + 'r=sqrt(x.^2+y.^2)+eps;,',... + 'z=sin(r)./r;,',... + 'mesh(x,y,z)']); +h2=uimenu(gcf,'label','色彩'); +hl2(1)=uimenu(h2,'label','Default',... + 'checked','on',... + 'callback',... + [... + 'set(hl2,''checked'',''off''),',... + 'set(hl2(1),''checked'',''on''),',... + 'colormap(''default'')']); +hl2(2)=uimenu(h2,'label','spring',... + 'callback',... + [... + 'set(hl2,''checked'',''off''),',... + 'set(hl2(2),''checked'',''on''),',... + 'colormap(spring)']); +hl2(3)=uimenu(h2,'label','Summer',... + 'callback',... + [... + 'set(hl2,''checked'',''off''),',... + 'set(hl2(3),''checked'',''on''),',... + 'colormap(summer)']); +hl2(4)=uimenu(h2,'label','Autumn',... + 'callback',... + [... + 'set(hl2,''checked'',''off''),',... + 'set(hl2(4),''checked'',''on''),',... + 'colormap(autumn)']); +hl2(5)=uimenu(h2,'label','Winter',... + 'callback',... + [... + 'set(hl2,''checked'',''off''),',... + 'set(hl2(5),''checked'',''on''),',... + 'colormap(winter)']); +h3=uimenu(gcf,'label','坐标选项'); +h31=uimenu(h3,'label','Axis on',... + 'callback',... + [... + 'axis on,',... + 'set(h31,''checked'',''on''),',... + 'set(h32,''checked'',''off'')']); +h32=uimenu(h3,'label','Axis off',... + 'callback',... + [... + 'axis off,',... + 'set(h32,''checked'',''on''),',... + 'set(h31,''checked'',''off'')']); \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21341.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21341.m" index c34ebe02db9deda76abfda09a38f66e086286de2..ba5be4e88ff6fb890c1d3bcd1d724adf8a9a2171 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21341.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21341.m" @@ -1,3 +1,35 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:01f485826f6689bae811689c6f455a59d0cc03e4df2611b35751aee16edfa625 -size 1159 +h=figure('toolbar','none',... + 'position',[200 150 450 250],... + 'name','实例41'); +h1=uicontrol(gcf,'style','edit',... + 'position',[80 200 100 20],... + 'HorizontalAlignment','right',... + 'callback',['m=get(h1,''string'');,',... + 'a=str2num(m);']); +h2=uicontrol(gcf,'style','edit',... + 'HorizontalAlignment','right',... + 'position',[80 150 100 20],... + 'callback',['n=get(h2,''string'');,',... + 'b=str2num(n);']); +h3=uicontrol(gcf,'style','text',... + 'string','被除数',... + 'position',[80 230 100 20]); +h4=uicontrol(gcf,'style','edit',... + 'position',[80 50 100 20]); +h5=uicontrol(gcf,'style','pushbutton',... + 'position',[80 100 100 20],... + 'string','=',... + 'callback',[... + 'if b==0,',... + 'h7=errordlg(''除数不能为0!'',''error'',''on'');,',... + 'else,',... + 'k=a/b;,',... + 'c=num2str(k);,',... + 'set(h4,''string'',c),',... + 'end']); +h8=uicontrol(gcf,'style','text',... + 'string','除数',... + 'position',[80 175 100 20]); +h9=uicontrol(gcf,'style','text',... + 'string','商',... + 'position',[80 75 100 20]); \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21342.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21342.m" index 4d664b8363802a8da2b7f80d2eb2d7ec7f0648eb..74516c3638c3e490b2674ce6cb61eccb7f1a52ad 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21342.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21342.m" @@ -1,3 +1,28 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2fe9c67c01c7caf3f85fa1675b3394a1e939e5a778d5784fcda8d71d886185cc -size 768 +h0=figure('toolbar','none',... + 'position',[200 150 450 250],... + 'name','实例42'); +x=0:0.5:2*pi; +y=sin(x); +plot(x,y) +grid on +set(gcf,'toolbar','none') +g=set(gca,'position',[0.2 0.2 0.6 0.6]); +huidiao1=[... + 'grid on,',... + 'set(box_on,''value'',1),',... + 'set(box_off,''value'',0),']; +huidiao2=[... + 'grid off,',... + 'set(box_off,''value'',1),',... + 'set(box_on,''value'',0),']; +box_on=uicontrol(gcf,'style','radio',... + 'position',[5 50 50 20],... + 'string','grid on',... + 'value',1,... + 'callback',huidiao1); +box_off=uicontrol(gcf,'style','radio',... + 'position',[5 20 50 20],... + 'string','grid off',... + 'value',0,... + 'callback',huidiao2); +title('无线按钮的使用') \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21343.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21343.m" index 1d9bdd76cae86d94cbdbfd8110d5e159ae88abbd..335853bd6b432517402c55d2ddcfee9a2d6584ad 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21343.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21343.m" @@ -1,3 +1,131 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e9447cf164d56ec0710fc82cadca2ae4745bf965726c5df0fe81c772df5d3392 -size 3921 +h0=figure('toolbar','none',... + 'position',[198 56 450 468],... + 'name','实例43'); +h1=axes('parent',h0,... + 'position',[0.15 0.45 0.7 0.5],... + 'visible','off'); +sphere +h=findobj('type','surface'); +shading interp +axis equal +l=light('position',[0 -2 1]); +k(1)=get(h,'specularstrength'); +k(2)=get(h,'diffusestrength'); +k(3)=get(h,'specularexponent'); +k(4)=get(h,'specularcolorreflectance'); +u1=uimenu('parent',h0,... + 'label','灯光效果',... + 'tag','u1',... + 'backgroundcolor',[0.75 0.75 0.75]); +u11=uimenu('parent',u1,... + 'label','gouraud',... + 'tag','u11',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'callback',[... + 'set(u11,''checked'',''on'');,',... + 'set(u12,''checked'',''off'');,',... + 'set(h,''facelighting'',''gouraud'')']); +u12=uimenu('parent',u1,... + 'label','phong',... + 'tag','u12',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'callback',[... + 'set(u11,''checked'',''off'');,',... + 'set(u12,''checked'',''on'');,',... + 'set(h,''facelighting'',''gouraud'')']); +u2=uimenu('parent',h0,... + 'label','背面灯光',... + 'tag','u2',... + 'backgroundcolor',[0.75 0.75 0.75]); +u21=uimenu('parent',u2,... + 'label','reverselit',... + 'tag','u21',... + 'checked','on',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'callback',[... + 'set(u21,''checked'',''on'');,',... + 'set(u22,''checked'',''off'');,',... + 'set(h,''backfacelighting'',''reverselit'')']); +u22=uimenu('parent',u2,... + 'label','reverselit',... + 'tag','u22',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'callback',[... + 'set(u21,''checked'',''off'');,',... + 'set(u22,''checked'',''on'');,',... + 'set(h,''backfacelighting'',''reverselit'')']); +s1=uicontrol('parent',h0,... + 'units','points',... + 'style','slider',... + 'tag','s1',... + 'min',0,... + 'max',1,... + 'value',k(1),... + 'position',[20 80 100 15],... + 'callback',[... + 's1value=get(s1,''value'');,',... + 'set(h,''specularstrength'',s1value)']); +t1=uicontrol('parent',h0,... + 'units','points',... + 'style','text',... + 'tag','t1',... + 'string','镜面反射强度',... + 'position',[20 97 100 15]); +s2=uicontrol('parent',h0,... + 'units','points',... + 'style','slider',... + 'tag','s2',... + 'min',0,... + 'max',1,... + 'value',k(2),... + 'position',[20 30 100 15],... + 'callback',[... + 's2value=get(s2,''value'');,',... + 'set(h,''diffusestrength'',s2value)']); +t2=uicontrol('parent',h0,... + 'units','points',... + 'style','text',... + 'tag','t2',... + 'string','漫反射强度',... + 'position',[20 47 100 15]); +s3=uicontrol('parent',h0,... + 'units','points',... + 'style','slider',... + 'tag','s3',... + 'min',0.1,... + 'max',1,... + 'value',k(3)/20,... + 'position',[220 80 100 15],... + 'callback',[... + 's3value=get(s3,''value'')+eps;,',... + 'set(h,''specularexponent'',20*s3value)']); +t3=uicontrol('parent',h0,... + 'units','points',... + 'style','text',... + 'tag','t3',... + 'string','镜面指数',... + 'position',[220 97 100 15]); +s4=uicontrol('parent',h0,... + 'units','points',... + 'style','slider',... + 'tag','s4',... + 'min',0,... + 'max',1,... + 'value',k(4),... + 'position',[220 30 100 15],... + 'callback',[... + 's4value=get(s4,''value'');,',... + 'set(h,''specularcolorreflectance'',s4value)']); +t4=uicontrol('parent',h0,... + 'units','points',... + 'style','text',... + 'tag','t1',... + 'string','镜面颜色反射比',... + 'position',[220 47 100 15]); +b1=uicontrol('parent',h0,... + 'units','points',... + 'style','pushbutton',... + 'tag','b1',... + 'string','关闭',... + 'position',[145 45 50 30],... + 'callback','close'); \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21344.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21344.m" index 50e1be3177b56fa3cb6bcd33a79de2c1f4d111d0..70a68ba36bc0eb7fd5f5c21ab48de79c14e40229 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21344.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21344.m" @@ -1,3 +1,89 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5abf3d6295e71508a886f4efda8845972d660129de99e335f718820ea2ef6a99 -size 2715 +h0=figure('toolbar','none',... + 'position',[198 56 408 468],... + 'name','实例44'); +h1=axes('parent',h0,... + 'position',[0.15 0.45 0.7 0.5],... + 'visible','on'); +e1=uicontrol('parent',h0,... + 'style','edit',... + 'string',1,... + 'position',[50 120 50 20]); +t1=uicontrol('parent',h0,... + 'style','text',... + 'string','X轴最小值',... + 'position',[35 150 80 20]); +e2=uicontrol('parent',h0,... + 'style','edit',... + 'string',5,... + 'position',[50 60 50 20]); +t2=uicontrol('parent',h0,... + 'style','text',... + 'string','X轴最大值',... + 'position',[35 90 80 20]); +e3=uicontrol('parent',h0,... + 'style','edit',... + 'string',1,... + 'position',[150 120 50 20]); +t3=uicontrol('parent',h0,... + 'style','text',... + 'string','Y轴最小值',... + 'position',[135 150 80 20]); +e4=uicontrol('parent',h0,... + 'style','edit',... + 'string',5,... + 'position',[150 60 50 20]); +t4=uicontrol('parent',h0,... + 'style','text',... + 'string','Y轴最大值',... + 'position',[135 90 80 20]); +e5=uicontrol('parent',h0,... + 'style','edit',... + 'string',20,... + 'position',[250 120 50 20]); +t5=uicontrol('parent',h0,... + 'style','text',... + 'horizontalalignment','left',... + 'string','点数',... + 'position',[250 150 30 20]); +b1=uicontrol('parent',h0,... + 'style','pushbutton',... + 'string','绘图',... + 'position',[250 60 60 40],... + 'callback',[... + 'a=str2num(get(e1,''string''));,',... + 'b=str2num(get(e2,''string''));,',... + 'c=str2num(get(e3,''string''));,',... + 'd=str2num(get(e4,''string''));,',... + 'n=str2num(get(e5,''string''));,',... + 'xgrid=linspace(-abs(a),abs(a),n);,',... + 'ygrid=linspace(-abs(b),abs(b),n);,',... + '[x,y]=meshgrid(xgrid,ygrid);,',... + 'z=c*sqrt(d-y.*y/b/b-x.*x/a/a);,',... + 'u=1;,',... + 'z1=real(z);,',... + 'for k=2:n-1,',... + 'for j=2:n-1,',... + 'if imag(z(k,j))~=0,',... + 'z1(k,j)=0;,',... + 'end,',... + 'if all(imag(z([k-1:k+1],[j-1:j+1])))~=0,',... + 'z1(k,j)=nan;,',... + 'end,',... + 'end,',... + 'end,',... + 'surf(x,y,z1),',... + 'hold on,',... + 'if u==1,',... + 'z2=-z1;,',... + 'surf(x,y,z2),',... + 'axis([-abs(a),abs(a),-abs(b),abs(b),-abs(c),abs(c)]);,',... + 'end,',... + 'xlabel(''x'');,',... + 'ylabel(''y'');,',... + 'zlabel(''z'');,',... + 'hold off']); +b2=uicontrol('parent',h0,... + 'style','pushbutton',... + 'string','关闭',... + 'position',[150 10 60 20],... + 'callback','close'); \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21345.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21345.m" index 49a338afb770f1e8bd129f787c6987d1fbaecf6e..eb8a83f940791fa0bce22d3595e1a4356c0ad4b9 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21345.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21345.m" @@ -1,3 +1,50 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:facbaaeb2e3e98725b6e4f10e02e4534403d869c7fd60d38ab138a70cd4a52a8 -size 1536 +h1=uicontrol(gcf,'style','radio',... + 'string','加',... + 'value',1,... + 'position',[20 150 40 20],... + 'callback',[... + 'k=1;,',... + 'set(h1,''value'',1),',... + 'set(h2,''value'',0),',... + 'set(h3,''value'',0)']); +h2=uicontrol(gcf,'style','radio',... + 'string','减',... + 'position',[20 110 40 20],... + 'callback',[... + 'k=2;,',... + 'set(h2,''value'',1),',... + 'set(h1,''value'',0),',... + 'set(h3,''value'',0)']); +h3=uicontrol(gcf,'style','radio',... + 'string','乘',... + 'position',[20 70 40 20],... + 'callback',[... + 'k=3;,',... + 'set(h3,''value'',1),',... + 'set(h2,''value'',0),',... + 'set(h1,''value'',0)']); +e1=uicontrol(gcf,'style','edit',... + 'position',[80 150 100 20]); +e2=uicontrol(gcf,'style','edit',... + 'position',[80 110 100 20]); +e3=uicontrol(gcf,'style','edit',... + 'position',[80 70 100 20]); +b1=uicontrol(gcf,'style','pushbutton',... + 'string','运算',... + 'position',[200 150 80 30],... + 'callback',[... + 'x=str2num(get(e1,''string''));,',... + 'y=str2num(get(e2,''string''));,',... + 'switch k,',... + 'case 1,',... + 'z=x+y;,',... + 'case 2,',... + 'z=x-y;,',... + 'case 3,',... + 'z=x*y;,',... + 'end,',... + 'set(e3,''string'',num2str(z))']); +b2=uicontrol(gcf,'style','pushbutton',... + 'string','退出',... + 'position',[200 100 80 30],... + 'callback','close'); \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21346.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21346.m" index b4b025844ef7597e252bef65fc7ab7a324ac891e..e8a24a8513d2f8aa644d873270690c5352332bde 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21346.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21346.m" @@ -1,3 +1,52 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:245189ca2043529e42c6bc67bd2875a72db4047e9d436fd5d91e778c92a4a286 -size 1518 +h0=figure('toolbar','none',... + 'position',[198 56 408 468],... + 'name','my second gui'); +h1=axes('parent',h0,... + 'position',[0.15 0.45 0.7 0.5],... + 'visible','on'); +x=0:0.1:2*pi; +k=plot(x,sin(x)); +xlabel('自变量X'); +ylabel('函数值Y'); +title('图形色彩改变'); +p1=uicontrol('parent',h0,... + 'style','pushbutton',... + 'backgroundcolor','r',... + 'position',[60 100 50 30],... + 'callback','set(k,''color'',''r'')'); +p2=uicontrol('parent',h0,... + 'style','pushbutton',... + 'backgroundcolor','g',... + 'position',[170 100 50 30],... + 'callback','set(k,''color'',''g'')'); +p3=uicontrol('parent',h0,... + 'style','pushbutton',... + 'backgroundcolor','b',... + 'position',[280 100 50 30],... + 'callback','set(k,''color'',''b'')'); +p4=uicontrol('parent',h0,... + 'style','pushbutton',... + 'backgroundcolor',[1 1 1],... + 'fontsize',20,... + 'fontweight','demi',... + 'string','关闭',... + 'position',[150 30 80 60],... + 'callback','close'); +t1=uicontrol('parent',h0,... + 'style','text',... + 'string','红色',... + 'fontsize',12,... + 'fontweight','demi',... + 'position',[60 120 50 20]); +t2=uicontrol('parent',h0,... + 'style','text',... + 'string','绿色',... + 'fontsize',12,... + 'fontweight','demi',... + 'position',[170 120 50 20]); +t3=uicontrol('parent',h0,... + 'style','text',... + 'string','蓝色',... + 'fontsize',12,... + 'fontweight','demi',... + 'position',[280 120 50 20]); \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21347.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21347.m" index 6c1b02ea56f92e9d8ffd6bb1551a7d9ef22072cb..8aec156b8a7f3bf4e65de65b7cebd7373f15bcad 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21347.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21347.m" @@ -1,3 +1,61 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6d87f1ace5531d50e20399fa9d8c47b8cf43f4f0df349e0f281b4cb1a7316721 -size 1779 +h0=figure('toolbar','none',... + 'position',[198 56 408 468],... + 'name','my second gui'); +h1=axes('parent',h0,... + 'position',[0.15 0.45 0.7 0.5],... + 'visible','on'); +x=0:0.1:2*pi; +k=plot(x,sin(x),'*'); +xlabel('自变量X'); +ylabel('函数值Y'); +title('标记类型的改变'); +p1=uicontrol('parent',h0,... + 'style','pushbutton',... + 'string','+',... + 'fontsize',20,... + 'foregroundcolor',[1 1 1],... + 'backgroundcolor',[0 0 0],... + 'position',[60 100 50 20],... + 'callback','set(k,''marker'',''+'')'); +p2=uicontrol('parent',h0,... + 'style','pushbutton',... + 'string','o',... + 'fontsize',20,... + 'foregroundcolor',[1 1 1],... + 'backgroundcolor',[0 0 0],... + 'position',[170 100 50 20],... + 'callback','set(k,''marker'',''o'')'); +p3=uicontrol('parent',h0,... + 'style','pushbutton',... + 'string','x',... + 'fontsize',20,... + 'foregroundcolor',[1 1 1],... + 'backgroundcolor',[0 0 0],... + 'position',[280 100 50 20],... + 'callback','set(k,''marker'',''x'')'); +p4=uicontrol('parent',h0,... + 'style','pushbutton',... + 'backgroundcolor',[1 1 1],... + 'fontsize',20,... + 'fontweight','demi',... + 'string','关闭',... + 'position',[150 30 80 60],... + 'callback','close'); +t1=uicontrol('parent',h0,... + 'style','text',... + 'string','星号',... + 'fontsize',12,... + 'fontweight','demi',... + 'position',[60 120 50 20]); +t2=uicontrol('parent',h0,... + 'style','text',... + 'string','圆圈',... + 'fontsize',12,... + 'fontweight','demi',... + 'position',[170 120 50 20]); +t3=uicontrol('parent',h0,... + 'style','text',... + 'string','叉号',... + 'fontsize',12,... + 'fontweight','demi',... + 'position',[280 120 50 20]); \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21348.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21348.m" index a74aec5b8d33b6d82f012e97a0effa7570ef4ba8..2feae15921eae347c2ff2e1711c619a544bd3555 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21348.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21348.m" @@ -1,3 +1,61 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:844b8fcd358c7a33a70b7128dc7dfc7a04fc12c7a6e0c4c44bc39be12cfad8ec -size 1777 +h0=figure('toolbar','none',... + 'position',[198 56 408 468],... + 'name','实例48'); +h1=axes('parent',h0,... + 'position',[0.15 0.45 0.7 0.5],... + 'visible','on'); +x=0:0.1:2*pi; +k=plot(x,sin(x)); +xlabel('自变量X'); +ylabel('函数值Y'); +title('线型的改变'); +p1=uicontrol('parent',h0,... + 'style','pushbutton',... + 'string','-.',... + 'fontsize',20,... + 'foregroundcolor',[1 1 1],... + 'backgroundcolor',[0 0 0],... + 'position',[60 100 50 20],... + 'callback','set(k,''linestyle'',''-.'')'); +p2=uicontrol('parent',h0,... + 'style','pushbutton',... + 'string',':',... + 'fontsize',20,... + 'foregroundcolor',[1 1 1],... + 'backgroundcolor',[0 0 0],... + 'position',[170 100 50 20],... + 'callback','set(k,''linestyle'','':'')'); +p3=uicontrol('parent',h0,... + 'style','pushbutton',... + 'string','-',... + 'fontsize',20,... + 'foregroundcolor',[1 1 1],... + 'backgroundcolor',[0 0 0],... + 'position',[280 100 50 20],... + 'callback','set(k,''linestyle'',''-'')'); +p4=uicontrol('parent',h0,... + 'style','pushbutton',... + 'backgroundcolor',[1 1 1],... + 'fontsize',20,... + 'fontweight','demi',... + 'string','关闭',... + 'position',[150 30 80 60],... + 'callback','close'); +t1=uicontrol('parent',h0,... + 'style','text',... + 'string','点划线',... + 'fontsize',12,... + 'fontweight','demi',... + 'position',[60 120 50 20]); +t2=uicontrol('parent',h0,... + 'style','text',... + 'string','虚线',... + 'fontsize',12,... + 'fontweight','demi',... + 'position',[170 120 50 20]); +t3=uicontrol('parent',h0,... + 'style','text',... + 'string','实线',... + 'fontsize',12,... + 'fontweight','demi',... + 'position',[280 120 50 20]); \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21349.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21349.m" index aadc225bfdb2e81ecb33ff7ffb3f34aa5a1900ee..b5dc2a06307445c064e647042f14ef5b247e5830 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21349.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21349.m" @@ -1,3 +1,66 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b509dadce86f3f3744da00a38dc1e6b3ac26234cea38975c234f54369ca0ca2e -size 1970 +h0=figure('toolbar','none',... + 'position',[198 56 408 468],... + 'name','实例49'); +h1=axes('parent',h0,... + 'position',[0.15 0.45 0.7 0.5],... + 'visible','on'); +x=0:0.1:2*pi; +y=sin(x); +plot(x,y); +xlabel('X'); +ylabel('Y'); +title('坐标轴范围的改变'); +h=get(gca,'xlim'); +k=get(gca,'ylim'); +e1=uicontrol('parent',h0,... + 'style','edit',... + 'string',eval(num2str(h(1))),... + 'horizontalalignment','right',... + 'position',[80 120 100 20]); +t1=uicontrol('parent',h0,... + 'style','text',... + 'string','X轴最小值',... + 'position',[100 145 80 20]); +e2=uicontrol('parent',h0,... + 'style','edit',... + 'string',eval(num2str(h(2))),... + 'horizontalalignment','right',... + 'position',[80 60 100 20]); +t2=uicontrol('parent',h0,... + 'style','text',... + 'string','X轴最大值',... + 'position',[100 85 80 20]); +e3=uicontrol('parent',h0,... + 'style','edit',... + 'string',eval(num2str(k(1))),... + 'horizontalalignment','right',... + 'position',[250 120 100 20]); +t3=uicontrol('parent',h0,... + 'style','text',... + 'string','Y轴最小值',... + 'position',[270 145 80 20]); +e4=uicontrol('parent',h0,... + 'style','edit',... + 'string',eval(num2str(k(2))),... + 'horizontalalignment','right',... + 'position',[250 60 100 20]); +t4=uicontrol('parent',h0,... + 'style','text',... + 'string','X轴最小值',... + 'position',[270 85 80 20]); +p1=uicontrol('parent',h0,... + 'style','pushbutton',... + 'string','设置',... + 'position',[105 10 50 30],... + 'callback',[... + 'a=str2num(get(e1,''string''));,',... + 'b=str2num(get(e2,''string''));,',... + 'c=str2num(get(e3,''string''));,',... + 'd=str2num(get(e4,''string''));,',... + 'axis([a b c d]),',... + 'drawnow']); +p2=uicontrol('parent',h0,... + 'style','pushbutton',... + 'string','关闭',... + 'position',[275 10 50 30],... + 'callback','close'); \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21350.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21350.m" index 355228d7e7f938c1d5ee252868b4c941b8ae3291..61674a4f0e4b1fdda1f71ef73499629afb8fa100 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21350.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21350.m" @@ -1,3 +1,82 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:92eb3f759792e2c9643f70c780a11035e4cea220b52ffc9d7a8783e1d019edab -size 2366 +h0=figure('toolbar','none',... + 'position',[198 56 408 468],... + 'name','实例50'); +h1=axes('parent',h0,... + 'position',[0.29 0.45 0.7 0.5],... + 'visible','on'); +f=uicontrol('parent',h0,... + 'style','frame',... + 'position',[5 50 90 400]); +p1=uicontrol('parent',h0,... + 'style','pushbutton',... + 'position',[150 100 60 40],... + 'string','绘图',... + 'callback',[... + 'm=str2num(get(e1,''string''));,',... + 'n=str2num(get(e2,''string''));,',... + 'a=get(l1,''value'');,',... + 'x=m:0.1:n;',... + 'if a==1,',... + 'plot(x,sin(x)),',... + 'end,',... + 'if a==2,',... + 'plot(x,cos(x)),',... + 'end,',... + 'if a==3,',... + 'plot(x,exp(x)),',... + 'end']); +p2=uicontrol('parent',h0,... + 'style','pushbutton',... + 'position',[270 100 60 40],... + 'string','关闭',... + 'callback','close'); +l1=uicontrol('parent',h0,... + 'style','listbox',... + 'position',[10 300 80 80],... + 'string','sin(x)|cos(x)|exp(x)',... + 'value',1,... + 'max',0.5,... + 'min',0); +f2=uicontrol('parent',h0,... + 'style','text',... + 'string','选择函数',... + 'fontsize',10,... + 'position',[10 380 80 20]); +r1=uicontrol('style','radio',... + 'string','grid on',... + 'value',0,... + 'position',[10 100 60 20],... + 'callback',[... + 'grid on,',... + 'set(r1,''value'',1);,',... + 'set(r2,''value'',0)']); +r2=uicontrol('style','radio',... + 'string','grid off',... + 'position',[10 80 60 20],... + 'value',1,... + 'callback',[... + 'grid off,',... + 'set(r2,''value'',1);,',... + 'set(r1,''value'',0)']); +e1=uicontrol('parent',h0,... + 'style','edit',... + 'string',0,... + 'position',[20 210 60 20],... + 'horizontalalignment','right'); +e2=uicontrol('parent',h0,... + 'style','edit',... + 'string','3',... + 'position',[20 150 60 20],... + 'horizontalalignment','right'); +t1=uicontrol('parent',h0,... + 'style','text',... + 'string','X from',... + 'fontsize',10,... + 'position',[20 230 60 20],... + 'horizontalalignment','center'); +t2=uicontrol('parent',h0,... + 'style','text',... + 'string','To',... + 'fontsize',10,... + 'position',[20 170 60 20],... + 'horizontalalignment','center'); \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21351.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21351.m" index 4fe58e2ba09ecc9dfd0424e23a93da13f6dd00ee..83282e5e25e17fe066fe51c3485dd2c843a7b94a 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21351.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21351.m" @@ -1,3 +1,72 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6644190e09e954e3d9524e69b5488e9ba99285bd4eebe46f24f42792241977a2 -size 1998 +h0=figure('toolbar','none',... + 'position',[198 56 408 468],... + 'name','实例51'); +h1=axes('parent',h0,... + 'position',[0.15 0.45 0.7 0.5],... + 'visible','off'); +[x,y]=meshgrid(-8:0.5:8); +r=sqrt(x.^2+y.^2)+eps; +z=sin(r)./r; +f1=surf(x,y,z); +shading interp +view(-50,30) +camlight left +colormap([1 0 0]) +fv=get(h0,'colormap'); +ifv=fv; +p1=uicontrol('parent',h0,... + 'style','pushbutton',... + 'string','重置',... + 'position',[280 120 50 30],... + 'callback',[... + 'set(s1,''value'',ifv(1));,',... + 'set(s2,''value'',ifv(2));,',... + 'set(s3,''value'',ifv(3));,',... + 'set(h0,''colormap'',ifv)']); +p2=uicontrol('parent',h0,... + 'style','pushbutton',... + 'string','关闭',... + 'position',[280 60 50 30],... + 'callback','close'); +s1=uicontrol('parent',h0,... + 'style','slider',... + 'min',0,... + 'max',1,... + 'value',fv(1),... + 'position',[20 150 200 20],... + 'callback',[... + 's1k=get(s1,''value'');,',... + 'fv(1)=s1k;,',... + 'set(h0,''colormap'',fv);']); +t1=uicontrol('parent',h0,... + 'style','text',... + 'string','改变红色成分',... + 'position',[20 170 100 20]); +s2=uicontrol('parent',h0,... + 'style','slider',... + 'min',0,... + 'max',1,... + 'value',fv(2),... + 'position',[20 100 200 20],... + 'callback',[... + 's2k=get(s2,''value'');,',... + 'fv(2)=s2k;,',... + 'set(h0,''colormap'',fv);']); +t2=uicontrol('parent',h0,... + 'style','text',... + 'string','改变绿色成分',... + 'position',[20 120 100 20]); +s3=uicontrol('parent',h0,... + 'style','slider',... + 'min',0,... + 'max',1,... + 'value',fv(3),... + 'position',[20 50 200 20],... + 'callback',[... + 's3k=get(s3,''value'');,',... + 'fv(3)=s3k;,',... + 'set(h0,''colormap'',fv);']); +t1=uicontrol('parent',h0,... + 'style','text',... + 'string','改变蓝色成分',... + 'position',[20 70 100 20]); diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21352.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21352.m" index 43b093fb60dd3f13306ec7447e4ef3503798c00c..d0e6b7316b40fc5c8178e39eabb0bbc464e7ae40 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21352.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21352.m" @@ -1,3 +1,74 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f4e17da262b1b3f11c754ce3b9b570c297dd7831107f121e8e0348d8aabeff6f -size 2178 +h0=figure('toolbar','none',... + 'position',[198 56 408 468],... + 'name','实例52'); +h1=axes('parent',h0,... + 'position',[0.15 0.5 0.7 0.5],... + 'visible','off'); +[x,y]=meshgrid(-8:0.5:8); +r=sqrt(x.^2+y.^2)+eps; +z=sin(r)./r; +fh=surf(x,y,z); +shading interp +view([-60 30]) +fv=get(h1,'view'); +fv2=fv; +camlight left +sh1=uicontrol('parent',h0,... + 'style','slider',... + 'max',1,... + 'min',-1,... + 'value',fv(1)/180,... + 'position',[20 150 200 20],... + 'callback',[... + 'fv(1)=90*get(sh1,''value'');,',... + 'set(h1,''view'',[fv(1) fv(2)]),',... + 'set(ed1,''string'',fv(1))']); +text1=uicontrol('parent',h0,... + 'style','text',... + 'string','方位角的变化滑标',... + 'position',[20 170 200 20]); +sh2=uicontrol('parent',h0,... + 'style','slider',... + 'max',1,... + 'min',-1,... + 'value',fv(2)/180,... + 'position',[20 90 200 20],... + 'callback',[... + 'fv(2)=90*get(sh2,''value'');,',... + 'set(h1,''view'',[fv(1) fv(2)]),',... + 'set(ed2,''string'',fv(2))']); +text2=uicontrol('parent',h0,... + 'style','text',... + 'string','仰角的变化滑标',... + 'position',[20 110 200 20]); +ed1=uicontrol('parent',h0,... + 'style','edit',... + 'string',fv(1),... + 'position',[30 30 50 20]); +text3=uicontrol('parent',h0,... + 'style','text',... + 'string','方位角的数值',... + 'position',[20 50 80 20]); +ed2=uicontrol('parent',h0,... + 'style','edit',... + 'string',fv(2),... + 'position',[150 30 50 20]); +text4=uicontrol('parent',h0,... + 'style','text',... + 'string','仰角的数值',... + 'position',[135 50 80 20]); +pf1=uicontrol('parent',h0,... + 'style','pushbutton',... + 'string','重置',... + 'position',[280 120 50 30],... + 'callback',[... + 'set(h1,''view'',fv2),',... + 'set(sh1,''value'',fv2(1)/180),',... + 'set(sh2,''value'',fv2(2)/180),',... + 'set(ed1,''string'',fv2(1)),',... + 'set(ed2,''string'',fv2(2))']); +pf2=uicontrol('parent',h0,... + 'style','pushbutton',... + 'string','关闭',... + 'position',[280 60 50 30],... + 'callback','close'); diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21353.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21353.m" index a2445e13bc05d9cca2c1a34e04a6dba76ab77f4b..1aeaea8df9d81566b83aec77eb37626283e85d05 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21353.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21353.m" @@ -1,3 +1,46 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:58a5d04cbd9ee2c2a36a10b4391e8c36ae869c81a0af5ed7f1f925fc313bfe8f -size 1464 +h0=figure('toolbar','none',... + 'position',[198 56 408 468],... + 'name','实例53'); +h1=axes('parent',h0,... + 'position',[0.15 0.5 0.7 0.5],... + 'visible','off'); +[x,y]=meshgrid(-8:0.5:8); +r=sqrt(x.^2+y.^2)+eps; +z=sin(r)./r; +fh=surf(x,y,z); +shading interp +view([-60 30]) +camlight left +lightk=light('position',[0 -2 1]); +button1=uicontrol('parent',h0,... + 'style','pushbutton',... + 'string','设置光线',... + 'position',[80 60 70 30],... + 'callback',[... + 'an1=inputdlg(''光线来源的X轴坐标'');,',... + 'k1=str2num(an1{1});,',... + 'an2=inputdlg(''光线来源的Y轴坐标'');,',... + 'k2=str2num(an2{1});,',... + 'an3=inputdlg(''光线来源的Z轴坐标'');,',... + 'k3=str2num(an3{1});,',... + 'set(lightk,''position'',[k1 k2 k3]);,',... + 'set(edit1,''string'',[''['',num2str(k1),'' '',num2str(k2),'' '',num2str(k3),'']'']);']); +button2=uicontrol('parent',h0,... + 'style','pushbutton',... + 'string','关闭',... + 'position',[250 60 70 30],... + 'callback','close'); +edit1=uicontrol('parent',h0,... + 'style','edit',... + 'max',2,... + 'min',0,... + 'fontsize',15,... + 'backgroundcolor',[1 1 1],... + 'string','[0 -2 1]',... + 'position',[80 110 220 30]); +text1=uicontrol('parent',h0,... + 'style','text',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'fontsize',15,... + 'string','光线来源坐标',... + 'position',[80 140 220 30]); \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21354.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21354.m" index 877cd9642f187fbb3ff953cc480cc2e96d9a5d0f..80a667c166052b0f0880c1c1607cb90f27a3d46f 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21354.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21354.m" @@ -1,3 +1,33 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7aba50d1b57867f9eb51a5851d6d9cbebc974bb9b9b529658ef1bac364f3dcf4 -size 1147 +h0=figure('toolbar','none',... + 'position',[200 50 300 350],... + 'name','实例54'); +h1=axes('parent',h0,... + 'position',[0.2 0.4 0.6 0.6],... + 'visible','off'); +ezsurf('sin(sqrt(x.^2+y.^2))/sqrt(x.^2+y.^2)',[-6*pi,6*pi]) +b1=uicontrol('parent',h0,... + 'units','points',... + 'tag','b1',... + 'style','pushbutton',... + 'string','设置',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[40 50 50 20],... + 'callback',[... + 'view(0,75);,',... + 'shading interp;,',... + 'lightangle(-45,30);,',... + 'k=findobj(gca,''type'',''surface'');,'... + 'set(k,''facelighting'',''phong'');,',... + 'set(k,''ambientstrength'',0.3);,',... + 'set(k,''diffusestrength'',0.8);,',... + 'set(k,''specularstrength'',0.9);,',... + 'set(k,''specularexponent'',25);,',... + 'set(k,''backfacelighting'',''unlit'')']); +b2=uicontrol('parent',h0,... + 'units','points',... + 'tag','b2',... + 'style','pushbutton',... + 'string','关闭',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[120 50 50 20],... + 'callback','close'); \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21355.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21355.m" index 4cea8fea8436b3b0b93987563e647ace72c9942a..aad66f0b9301a1b7b5e6de5d4f9fbe6217b0a59e 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21355.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21355.m" @@ -1,3 +1,128 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8ab31cf02811a3b1668dc519c54c00626bab29e1d4661693c2e80ddbca31964a -size 4208 +h0=figure('toolbar','none',... + 'position',[198 56 408 468],... + 'name','实例55'); +h1=axes('parent',h0,... + 'position',[0.15 0.5 0.7 0.5],... + 'visible','off'); +huidiao=[... + 'yearnum=str2num(get(edit1,''string''));,',... + 'monthnum=str2num(get(edit2,''string''));,',... + 'daynum=str2num(get(edit3,''string''));,',... + 'monthday=[0 31 28 31 30 31 30 31 31 30 31 30 31];,',... + 'dyear=yearnum-2000;,',... + 'beishu=fix(dyear/4);,',... + 'yushu=rem(yearnum,4);,',... + 'if yushu==0,',... + 'monthday(3)=29;,',... + 'end,',... + 'mday=0;,',... + 'for i=1:monthnum,',... + 'mday=monthday(i)+mday;,',... + 'end,',... + 'yearday=mday+daynum-1;,',... + 'noweek=fix(yearday/7);,',... + 'set(edit5,''string'',[''第'',num2str(noweek),''周'']);,',... + 'if dyear>0,',... + 'if yushu==0,',... + 'beishu=beishu-1;,',... + 'end,',... + 'dday=yearday+365*dyear+beishu+1;,',... + 'end,',... + 'if dyear<=0,',... + 'dday=365*dyear+yearday+beishu;,',... + 'end,',... + 'mweek=rem(dday,7)+7;,',... + 'if mweek==8,',... + 'set(edit4,''string'',''Sunday'');,',... + 'end,',... + 'if mweek==9,',... + 'set(edit4,''string'',''Monday'');,',... + 'end,',... + 'if mweek==10,',... + 'set(edit4,''string'',''Tuesday'');,',... + 'end,',... + 'if mweek==11,',... + 'set(edit4,''string'',''Wednesday'');,',... + 'end,',... + 'if mweek==12,',... + 'set(edit4,''string'',''Thursday'');,',... + 'end,',... + 'if mweek==13,',... + 'set(edit4,''string'',''Friday'');,',... + 'end,',... + 'if mweek==7,',... + 'set(edit4,''string'',''Saturday'');,',... + 'end,',... + 'if mweek==6,',... + 'set(edit4,''string'',''Friday'');,',... + 'end,',... + 'if mweek==5,',... + 'set(edit4,''string'',''Thursday'');,',... + 'end,',... + 'if mweek==4,',... + 'set(edit4,''string'',''Wednesday'');,',... + 'end,',... + 'if mweek==3,',... + 'set(edit4,''string'',''Tuesday'');,',... + 'end,',... + 'if mweek==2,',... + 'set(edit4,''string'',''Monday'');,',... + 'end,',... + 'if mweek==1,',... + 'set(edit4,''string'',''Sunday'');,',... + 'end']; +edit1=uicontrol('parent',h0,... + 'style','edit',... + 'horizontalalignment','right',... + 'position',[40 300 50 20]); +text1=uicontrol('parent',h0,... + 'style','text',... + 'string','年',... + 'horizontalalignment','left',... + 'position',[90 300 50 20]); +edit2=uicontrol('parent',h0,... + 'style','edit',... + 'horizontalalignment','right',... + 'position',[160 300 50 20]); +text2=uicontrol('parent',h0,... + 'style','text',... + 'string','月',... + 'horizontalalignment','left',... + 'position',[210 300 50 20]); +edit3=uicontrol('parent',h0,... + 'style','edit',... + 'horizontalalignment','right',... + 'position',[280 300 50 20]); +text3=uicontrol('parent',h0,... + 'style','text',... + 'string','日',... + 'horizontalalignment','left',... + 'position',[330 300 50 20]); +edit4=uicontrol('parent',h0,... + 'style','edit',... + 'horizontalalignment','left',... + 'position',[210 200 120 20]); +text4=uicontrol('parent',h0,... + 'style','text',... + 'string','查找的日期为',... + 'horizontalalignment','right',... + 'position',[110 200 100 20]); +edit5=uicontrol('parent',h0,... + 'style','edit',... + 'horizontalalignment','left',... + 'position',[210 100 120 20]); +text1=uicontrol('parent',h0,... + 'style','text',... + 'string','该日处于',... + 'horizontalalignment','left',... + 'position',[160 100 50 20]); +button1=uicontrol('parent',h0,... + 'style','pushbutton',... + 'position',[80 40 80 30],... + 'string','开始',... + 'callback',huidiao); +button2=uicontrol('parent',h0,... + 'style','pushbutton',... + 'position',[220 40 80 30],... + 'string','关闭',... + 'callback','close'); diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21356.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21356.m" index ab7040793bd6ea38e8ecc76cc08515666f289a96..60d2425ba23ae572eed4b7999652eed505f0415b 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21356.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21356.m" @@ -1,3 +1,157 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d7667f456e29e05e618f7d9a376657417a74d3b670a3143d9e9bbebab53ac114 -size 4621 +h0=figure('toolbar','none',... + 'position',[198 56 450 468],... + 'name','实例56'); +h1=axes('parent',h0,... + 'position',[0.3 0.45 0.5 0.5],... + 'visible','off'); +l1=uimenu(gcf,'label','Draw figure',... + 'tag','l1'); +huidiao=[... + 'if get(r1,''value'')==1,',... + 'shading faceted,',... + 'end,',... + 'if get(r2,''value'')==1,',... + 'shading flat,',... + 'end,',... + 'if get(r3,''value'')==1,',... + 'shading interp,',... + 'end,',... + 'k=get(p1,''value'');,',... + 'switch k,',... + 'case 1,',... + 'colormap(''cool''),',... + 'case 2,',... + 'colormap(''spring''),',... + 'case 3,',... + 'colormap(''summer''),',... + 'case 4,',... + 'colormap(''autumn''),',... + 'case 5,',... + 'colormap(''winter''),',... + 'end']; +l11=uimenu('parent',l1,... + 'label','Surface',... + 'tag','l11',... + 'callback',[... + '[x,y]=meshgrid(-8:0.5:8);,',... + 'r=sqrt(x.^2+y.^2)+eps;,',... + 'z=sin(r)./r;,',... + 'surf(x,y,z),',... + huidiao]); +l12=uimenu('parent',l1,... + 'label','Mesh',... + 'tag','l12',... + 'callback',[... + 'mesh(peaks),',... + huidiao]); +l13=uimenu('parent',l1,... + 'label','Membrane',... + 'tag','l13',... + 'callback',[... + 'mesh(membrane),',... + huidiao]); +f1=uicontrol('parent',h0,... + 'units','points',... + 'listboxtop',0,... + 'position',[12 6 100 101],... + 'style','frame',... + 'tag','f1'); +r1=uicontrol('parent',h0,... + 'units','points',... + 'backgroundcolor',[0.753 0.753 0.753],... + 'listboxtop',0,... + 'position',[19.5 58.5 72.75 16.5],... + 'string','shading faceted',... + 'style','radiobutton',... + 'tag','r1',... + 'value',1,... + 'callback',[... + 'shading faceted,',... + 'set(r1,''value'',1);,',... + 'set(r2,''value'',0);,',... + 'set(r3,''value'',0);']); +r2=uicontrol('parent',h0,... + 'units','points',... + 'backgroundcolor',[0.753 0.753 0.753],... + 'listboxtop',0,... + 'position',[19.5 35.25 78.75 18.75],... + 'string','shading flat',... + 'style','radiobutton',... + 'tag','r2',... + 'value',0,... + 'callback',[... + 'shading flat,',... + 'set(r2,''value'',1);,',... + 'set(r1,''value'',0);,',... + 'set(r3,''value'',0);']); +r3=uicontrol('parent',h0,... + 'units','points',... + 'backgroundcolor',[0.753 0.753 0.753],... + 'listboxtop',0,... + 'position',[19.5 12.75 71.25 18.75],... + 'string','shading interp',... + 'style','radiobutton',... + 'tag','r3',... + 'value',0,... + 'callback',[... + 'shading interp,',... + 'set(r3,''value'',1);,',... + 'set(r1,''value'',0);,',... + 'set(r2,''value'',0);']); +t1=uicontrol('parent',h0,... + 'units','points',... + 'backgroundcolor',[0.753 0.753 0.753],... + 'fontsize',12,... + 'listboxtop',0,... + 'position',[14.25 75.75 90.75 22.5],... + 'string','平滑处理',... + 'style','text',... + 'tag','t1'); +t2=uicontrol('parent',h0,... + 'units','points',... + 'backgroundcolor',[0.753 0.753 0.753],... + 'fontsize',12,... + 'listboxtop',0,... + 'position',[117 69 72.75 17.5],... + 'string','设置色调',... + 'style','text',... + 'tag','t2'); +p1=uicontrol('parent',h0,... + 'units','points',... + 'backgroundcolor',[0.753 0.753 0.753],... + 'listboxtop',0,... + 'position',[116.25 39 72.75 20.25],... + 'string','Cool|Spring|Summer|Autumn|Winter',... + 'style','popupmenu',... + 'tag','p1',... + 'value',1,... + 'callback',[... + 'k=get(p1,''value'');,',... + 'switch k,',... + 'case 1,',... + 'colormap(''cool''),',... + 'case 2,',... + 'colormap(''spring''),',... + 'case 3,',... + 'colormap(''summer''),',... + 'case 4,',... + 'colormap(''autumn''),',... + 'case 5,',... + 'colormap(''winter''),',... + 'end']); +b1=uicontrol('parent',h0,... + 'units','points',... + 'backgroundcolor',[0.753 0.753 0.753],... + 'listboxtop',0,... + 'position',[12 243 72.75 30.75],... + 'string','关闭',... + 'tag','b1',... + 'callback','close'); +b2=uicontrol('parent',h0,... + 'units','points',... + 'backgroundcolor',[0.753 0.753 0.753],... + 'listboxtop',0,... + 'position',[216.75 67.5 83.25 18.75],... + 'string','Colorbar',... + 'tag','b2',... + 'callback','colorbar'); \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21357.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21357.m" index 4aea0831511459a7c6728d153ff6a838ca3db016..3d4e0fdfa558dd11b96089f1e09e7f6d9574d5c1 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21357.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21357.m" @@ -1,3 +1,90 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8d94d34655a2b302c975961122006f7528cee9c9f1d56877df555166ca270e93 -size 2721 +h0=figure('toolbar','none',... + 'position',[168 94.5 315 289.5],... + 'name','实例57'); +h1=axes('parent',h0,... + 'position',[0.4 0.4 0.5 0.5],... + 'visible','off'); +f1=uicontrol('parent',h0,... + 'style','frame',... + 'position',[15 10 80 70],... + 'string','dull',... + 'units','points',... + 'backgroundcolor',[0.753 0.753 0.753],... + 'listboxtop',0,... + 'tag','r1',... + 'value',1,... + 'callback',[... + 'set(r1,''value'',1);,',... + 'set(r2,''value'',0);,',... + 'set(r3,''value'',0);,',... + 'material dull']); +r1=uicontrol('parent',h0,... + 'style','radiobutton',... + 'position',[19.5 58.5 72.75 16.5],... + 'string','dull',... + 'units','points',... + 'backgroundcolor',[0.753 0.753 0.753],... + 'listboxtop',0,... + 'tag','r1',... + 'value',1,... + 'callback',[... + 'set(r1,''value'',1);,',... + 'set(r2,''value'',0);,',... + 'set(r3,''value'',0);,',... + 'material dull']); +r2=uicontrol('parent',h0,... + 'style','radiobutton',... + 'position',[19.5 35.25 72.75 16.5],... + 'string','metal',... + 'units','points',... + 'backgroundcolor',[0.753 0.753 0.753],... + 'listboxtop',0,... + 'tag','r2',... + 'value',0,... + 'callback',[... + 'set(r2,''value'',1);,',... + 'set(r1,''value'',0);,',... + 'set(r3,''value'',0);,',... + 'material metal']); +r3=uicontrol('parent',h0,... + 'style','radiobutton',... + 'position',[19.5 12.75 72.75 16.5],... + 'string','shiny',... + 'units','points',... + 'backgroundcolor',[0.753 0.753 0.753],... + 'listboxtop',0,... + 'tag','r3',... + 'value',0,... + 'callback',[... + 'set(r3,''value'',1);,',... + 'set(r1,''value'',0);,',... + 'set(r2,''value'',0);,',... + 'material shiny']); +u1=uimenu('parent',h0,... + 'label','绘图',... + 'backgroundcolor',[0.753 0.753 0.753],... + 'tag','u1',... + 'callback',[... + '[x,y]=meshgrid(-8:0.5:8);,',... + 'r=sqrt(x.^2+y.^2)+eps;,',... + 'z=sin(r)./r;,',... + 'surf(x,y,z),',... + 'shading interp']); +b1=uicontrol('parent',h0,... + 'style','pushbutton',... + 'position',[19.5 150 60 20],... + 'string','light',... + 'units','points',... + 'backgroundcolor',[0.753 0.753 0.753],... + 'listboxtop',0,... + 'tag','b1',... + 'callback','camlight headlight'); +b2=uicontrol('parent',h0,... + 'style','pushbutton',... + 'position',[19.5 100 60 20],... + 'string','关闭',... + 'units','points',... + 'backgroundcolor',[0.753 0.753 0.753],... + 'listboxtop',0,... + 'tag','b2',... + 'callback','close'); \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21358.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21358.m" index 5f5ccb16c875479d465c44669641cea1ccdea415..2c03480c4b92090e90c0c764e4444c9ef5553430 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21358.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21358.m" @@ -1,3 +1,82 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e4c2b28434353a743fba8953918b9ce5529a809958937ac246085aadc088539a -size 2072 +h0=figure('toolbar','none',... + 'position',[198 56 350 468],... + 'name','实例58'); +h1=axes('parent',h0,... + 'position',[0.25 0.45 0.5 0.5],... + 'visible','off'); +t=0:0.1:4*pi; +x=sin(t); +y=cos(t); +plot(x,y) +axis equal +axis off +h=line('color',[1 0 0],... + 'linestyle','.',... + 'xdata',0,... + 'ydata',1,... + 'markersize',20,... + 'erasemode','xor'); +n=length(t); +i=1; +speed=0.01; +k=0; +b1huidiao=[... + 'k=0;,',... + 'while 1,',... + 'set(h,''xdata'',x(i),''ydata'',y(i));,',... + 'drawnow,',... + 'pause(speed),',... + 'i=i+1;,',... + 'if i>n,',... + 'i=1;,',... + 'end,',... + 'if k==1,',... + 'break,',... + 'end,',... + 'end']; +b1=uicontrol('parent',h0,... + 'units','points',... + 'tag','b1',... + 'style','pushbutton',... + 'string','开始',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[30 80 50 20],... + 'callback',b1huidiao); +b2=uicontrol('parent',h0,... + 'units','points',... + 'tag','b2',... + 'style','pushbutton',... + 'string','停止',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[100 80 50 20],... + 'callback','k=1;'); +b3=uicontrol('parent',h0,... + 'units','points',... + 'tag','b3',... + 'style','pushbutton',... + 'string','关闭',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[170 80 50 20],... + 'callback',[... + 'k=1;,',... + 'close']); +s1=uicontrol('parent',h0,... + 'units','points',... + 'tag','s1',... + 'style','slider',... + 'value',50*speed,... + 'max',1,... + 'min',0,... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[30 115 190 20],... + 'callback',[... + 'm=get(s1,''value'');,',... + 'speed=m/50;']); +t1=uicontrol('parent',h0,... + 'units','points',... + 'tag','t1',... + 'style','text',... + 'fontsize',15,... + 'string','小球运动速度',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[30 135 190 20]); diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21359.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21359.m" index 9314a328d4f98323d7ad5207355f6f7fa6d1586b..a232d451e2a5cbce27f8a917b9af8112a1319883 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21359.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21359.m" @@ -1,3 +1,125 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ffc1194b492ecd031c76ad0430116c3319d79981ed8228c3a67da5a0720a2c21 -size 3839 +h0=figure('name','实例59'); +h1=axes('parent',h0,... + 'position',[0.3 0.45 0.5 0.5],... + 'visible','off'); +u1=uimenu('parent',h0,... + 'label','绘图',... + 'backgroundcolor',[0.753 0.753 0.753],... + 'tag','u1',... + 'callback',[... + '[x,y]=meshgrid(-8:0.5:8);,',... + 'r=sqrt(x.^2+y.^2)+eps;,',... + 'z=sin(r)./r;,',... + 'mesh(x,y,z),',... + 'shading interp,',... + 'axis normal']); +f1=uicontrol('parent',h0,... + 'units','points',... + 'listboxtop',0,... + 'position',[12 6 100 150],... + 'style','frame',... + 'tag','f1'); +t1=uicontrol('parent',h0,... + 'units','points',... + 'backgroundcolor',[0.753 0.753 0.753],... + 'listboxtop',0,... + 'position',[19.5 130 72.75 16.5],... + 'string','坐标纵横比',... + 'style','text',... + 'tag','t1'); +r1=uicontrol('parent',h0,... + 'units','points',... + 'backgroundcolor',[0.753 0.753 0.753],... + 'listboxtop',0,... + 'position',[19.5 110 72.75 16.5],... + 'string','axis equal',... + 'style','radiobutton',... + 'tag','r1',... + 'value',1,... + 'callback',[... + 'set(r1,''value'',1);,',... + 'set(r2,''value'',0);,',... + 'set(r3,''value'',0);,',... + 'set(r4,''value'',0);,',... + 'set(r5,''value'',0);,',... + 'axis equal']); +r2=uicontrol('parent',h0,... + 'units','points',... + 'backgroundcolor',[0.753 0.753 0.753],... + 'listboxtop',0,... + 'position',[19.5 85 72.75 16.5],... + 'string','axis square',... + 'style','radiobutton',... + 'tag','r2',... + 'value',0,... + 'callback',[... + 'set(r2,''value'',1);,',... + 'set(r1,''value'',0);,',... + 'set(r3,''value'',0);,',... + 'set(r4,''value'',0);,',... + 'set(r5,''value'',0);,',... + 'axis square']); +r3=uicontrol('parent',h0,... + 'units','points',... + 'backgroundcolor',[0.753 0.753 0.753],... + 'listboxtop',0,... + 'position',[19.5 60 72.75 16.5],... + 'string','axis image',... + 'style','radiobutton',... + 'tag','r3',... + 'value',0,... + 'callback',[... + 'set(r3,''value'',1);,',... + 'set(r2,''value'',0);,',... + 'set(r1,''value'',0);,',... + 'set(r4,''value'',0);,',... + 'set(r5,''value'',0);,',... + 'axis image']); +r4=uicontrol('parent',h0,... + 'units','points',... + 'backgroundcolor',[0.753 0.753 0.753],... + 'listboxtop',0,... + 'position',[19.5 35 72.75 16.5],... + 'string','axie vis3d',... + 'style','radiobutton',... + 'tag','r4',... + 'value',0,... + 'callback',[... + 'set(r4,''value'',1);,',... + 'set(r2,''value'',0);,',... + 'set(r3,''value'',0);,',... + 'set(r1,''value'',0);,',... + 'set(r5,''value'',0);,',... + 'axis vis3d']); +r5=uicontrol('parent',h0,... + 'units','points',... + 'backgroundcolor',[0.753 0.753 0.753],... + 'listboxtop',0,... + 'position',[19.5 10 72.75 16.5],... + 'string','axis auto',... + 'style','radiobutton',... + 'tag','r5',... + 'value',0,... + 'callback',[... + 'set(r5,''value'',1);,',... + 'set(r2,''value'',0);,',... + 'set(r3,''value'',0);,',... + 'set(r4,''value'',0);,',... + 'set(r1,''value'',0);,',... + 'axis auto']); +b1=uicontrol('parent',h0,... + 'units','points',... + 'backgroundcolor',[0.753 0.753 0.753],... + 'listboxtop',0,... + 'position',[12 243 72.75 30.75],... + 'string','关闭',... + 'tag','b1',... + 'callback','close'); +b2=uicontrol('parent',h0,... + 'units','points',... + 'backgroundcolor',[0.753 0.753 0.753],... + 'listboxtop',0,... + 'position',[216.75 67.5 83.25 18.75],... + 'string','Colorbar',... + 'tag','b2',... + 'callback','colorbar'); \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21360.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21360.m" index 96008198da99a33d072f15ddb15ebbbfa026ea7f..ab8bf8dd226035beaa16212f4ca6f16b35db8f9d 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21360.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21360.m" @@ -1,3 +1,73 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:db128b9cef92d24f2d7e354ec9784bd216f781db1980b0ca5256517526143de4 -size 2070 +h0=figure('toolbar','none',... + 'position',[198 56 350 468],... + 'name','实例60'); +h1=axes('parent',h0,... + 'position',[0.25 0.45 0.5 0.5],... + 'visible','off'); +str1='当前阻尼比='; +z=0.52; +t=0:0.1:10; +y=step(1,[1 2*z 1],t); +hline=plot(t,y); +grid on +r1=uicontrol('parent',h0,... + 'units','points',... + 'tag','r1',... + 'style','radio',... + 'string','grid on',... + 'position',[30 120 60 20],... + 'backgroundcolor',[0.75 0.75 0.75],... + 'value',1,... + 'callback',[... + 'grid on,',... + 'set(r1,''value'',1);,',... + 'set(r2,''value'',0)']); +r2=uicontrol('parent',h0,... + 'units','points',... + 'tag','r2',... + 'style','radio',... + 'string','grid on',... + 'position',[30 95 60 20],... + 'backgroundcolor',[0.75 0.75 0.75],... + 'value',0,... + 'callback',[... + 'grid off,',... + 'set(r2,''value'',1);,',... + 'set(r1,''value'',0)']); +s1=uicontrol('parent',h0,... + 'units','points',... + 'tag','s1',... + 'style','slider',... + 'value',z,... + 'position',[100 95 150 20],... + 'backgroundcolor',[0.75 0.75 0.75],... + 'max',1,... + 'min',0,... + 'callback',[... + 'z=get(s1,''value'');,',... + 'set(t1,''string'',[str1,sprintf(''%1.4g\'',z)]);,',... + 'delete(hline),',... + 'y=step(1,[1 2*z 1],t);,',... + 'hline=plot(t,y);,',... + 'if get(r1,''value'')==1,',... + 'grid on,',... + 'end,',... + 'if get(r2,''value'')==1,',... + 'grid off,',... + 'end']); +t1=uicontrol('parent',h0,... + 'units','points',... + 'tag','t1',... + 'style','text',... + 'string',[str1,sprintf('%1.4g\',z)],... + 'position',[100 120 150 20],... + 'backgroundcolor',[0.75 0.75 0.75]); +b1=uicontrol('parent',h0,... + 'units','points',... + 'tag','b1',... + 'style','pushbutton',... + 'string','关闭',... + 'position',[80 50 80 30],... + 'backgroundcolor',[0.75 0.75 0.75],... + 'fontsize',15,... + 'callback','close'); \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21361.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21361.m" index acff529a5e24d3c72678ec4a8322a5d10bdb2a7f..9be4a20866215e0bbd8e9b1e8b19781750b01870 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21361.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21361.m" @@ -1,3 +1,115 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c47b91b0eb2e783ab00b2cc6ae2f53bf2837fa95a8e5c573e14a786940bd6e13 -size 3735 +h0=figure('toolbar','none',... + 'position',[198 56 450 468],... + 'name','实例61'); +h1=axes('parent',h0,... + 'position',[0.3 0.45 0.5 0.5],... + 'visible','off'); +[x,y,z,v]=flow; +xmin=min(x(:)); +ymin=min(y(:)); +zmin=min(z(:)); +xmax=max(x(:)); +ymax=max(y(:)); +zmax=max(z(:)); +u1=uimenu('parent',h0,... + 'tag','u1',... + 'label','绘图',... + 'background',[0.75 0.75 0.75]); +u11=uimenu('parent',u1,... + 'tag','u11',... + 'label','绕X轴旋转-45度',... + 'background',[0.75 0.75 0.75],... + 'callback',[... + 'cla,',... + 'hslice=surf(linspace(xmin,xmax,100),linspace(ymin,ymax,100),zeros(100));,',... + 'rotate(hslice,[-1,0,0],-45),',... + 'xd=get(hslice,''xdata'');,',... + 'yd=get(hslice,''ydata'');,',... + 'zd=get(hslice,''zdata'');']); +u12=uimenu('parent',u1,... + 'tag','u12',... + 'label','绕Y轴旋转-45度',... + 'background',[0.75 0.75 0.75],... + 'callback',[... + 'cla,',... + 'hslice=surf(linspace(xmin,xmax,100),linspace(ymin,ymax,100),zeros(100));,',... + 'rotate(hslice,[0,-1,0],-45),',... + 'xd=get(hslice,''xdata'');,',... + 'yd=get(hslice,''ydata'');,',... + 'zd=get(hslice,''zdata'');']); +b1=uicontrol('parent',h0,... + 'style','pushbutton',... + 'units','points',... + 'tag','b1',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'string','设置颜色',... + 'position',[50 120 60 25],... + 'callback',[... + 'delete(hslice),',... + 'h=slice(x,y,z,v,xd,yd,zd);,',... + 'set(h,''facecolor'',''interp'',''edgecolor'',''none'',''diffusestrength'',0.8)']); +b2=uicontrol('parent',h0,... + 'style','pushbutton',... + 'units','points',... + 'tag','b2',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'string','添加切片1',... + 'position',[240 120 60 25],... + 'callback',[... + 'hold on,',... + 'hx=slice(x,y,z,v,xmax,[],[]);,',... + 'set(hx,''facecolor'',''interp'',''edgecolor'',''none'')']); +b3=uicontrol('parent',h0,... + 'style','pushbutton',... + 'units','points',... + 'tag','b3',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'string','添加切片2',... + 'position',[240 70 60 20],... + 'callback',[... + 'hold on,',... + 'hy=slice(x,y,z,v,ymax,[],[]);,',... + 'set(hy,''facecolor'',''interp'',''edgecolor'',''none'')']); +b4=uicontrol('parent',h0,... + 'style','pushbutton',... + 'units','points',... + 'tag','b4',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'string','添加切片3',... + 'position',[240 20 60 20],... + 'callback',[... + 'hold on,',... + 'hz=slice(x,y,z,v,zmax-1,[],[]);,',... + 'set(hz,''facecolor'',''interp'',''edgecolor'',''none'')']); +b5=uicontrol('parent',h0,... + 'style','pushbutton',... + 'units','points',... + 'tag','b5',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'string','灯光效果',... + 'position',[50 70 60 20],... + 'callback',[... + 'daspect([1 1 1]),',... + 'axis tight,',... + 'box on,',... + 'view(-38.5,16),',... + 'camzoom(1.4),',... + 'camproj perspective,',... + 'lightangle(-45,45)']); +b6=uicontrol('parent',h0,... + 'style','pushbutton',... + 'units','points',... + 'tag','b6',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'string','colorbar',... + 'position',[50 20 60 20],... + 'callback','colorbar(''horiz'')'); +b7=uicontrol('parent',h0,... + 'style','pushbutton',... + 'units','points',... + 'tag','b7',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'string','关闭',... + 'fontsize',14,... + 'position',[145 75 60 20],... + 'callback','close'); \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21362.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21362.m" index d3944da64585bf27099f8e2363b26dc743ec841e..71bce991f62cd9f7cb86770676078c855c4ab04a 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21362.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21362.m" @@ -1,3 +1,341 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ac9dddf42d31fa6e66aa234d5054b846723a179fd371f6432fb539d15dd8114d -size 9454 +h0=figure('toolbar','none',... + 'position',[200 60 220 240],... + 'name','实例62'); +b0=uicontrol('parent',h0,... + 'units','points',... + 'tag','b0',... + 'style','pushbutton',... + 'string','0',... + 'fontsize',12,... + 'position',[5 15 35 20],... + 'backgroundcolor',[0.75 0.75 0.75],... + 'callback',[... + 'if k==''0''&i==0,',... + 'errordlg(''数字首位不能为0''),',... + 'else,',... + 'k=[k,''0''];,',... + 'if k==''00'',',... + 'k=''0'';,',... + 'end,',... + 'set(e1,''string'',k);,',... + 'end']); +b15=uicontrol('parent',h0,... + 'units','points',... + 'tag','b15',... + 'style','pushbutton',... + 'string','=',... + 'fontsize',12,... + 'position',[45 15 35 20],... + 'backgroundcolor',[0.75 0.75 0.75],... + 'callback',[... + 'k=get(e1,''string'');,',... + 'if g==''+'',',... + 'm=m+str2num(k);,',... + 'end,',... + 'if g==''-'',',... + 'm=m-str2num(k);,',... + 'end,',... + 'if g==''*'',',... + 'm=m*str2num(k);,',... + 'end,',... + 'if g==''/'',',... + 'if k==''0'',',... + 'errordlg(''除数不能为0'');,',... + 'end,',... + 'm=m/str2num(k);,',... + 'end,',... + 'set(e1,''string'',num2str(m));,',... + 'i=0;']); +b11=uicontrol('parent',h0,... + 'units','points',... + 'tag','b11',... + 'style','pushbutton',... + 'string','+',... + 'fontsize',12,... + 'position',[85 15 35 20],... + 'backgroundcolor',[0.75 0.75 0.75],... + 'callback',[... + 'i=i+1;,',... + 'if i==1,',... + 'm=str2num(k);,',... + 'set(e1,''string'',''0'');,',... + 'end,',... + 'if i>1,',... + 'k=get(e1,''string'');,',... + 'if g==''+'',',... + 'm=m+str2num(k);,',... + 'end,',... + 'if g==''-'',',... + 'm=m-str2num(k);,',... + 'end,',... + 'if g==''*'',',... + 'm=m*str2num(k);,',... + 'end,',... + 'if g==''/'',',... + 'if k==''0'',',... + 'errordlg(''除数不能为0'');,',... + 'end,',... + 'm=m/str2num(k);,',... + 'end,',... + 'set(e1,''string'',num2str(m));,',... + 'i=1;,',... + 'end,',... + 'k=''0'';,',... + 'g=''+'';']); +b16=uicontrol('parent',h0,... + 'units','points',... + 'tag','b16',... + 'style','pushbutton',... + 'string','关闭',... + 'fontsize',12,... + 'position',[125 15 35 20],... + 'backgroundcolor',[0.75 0.75 0.75],... + 'callback','close'); +b1=uicontrol('parent',h0,... + 'units','points',... + 'tag','b1',... + 'style','pushbutton',... + 'string','1',... + 'fontsize',12,... + 'position',[5 45 35 20],... + 'backgroundcolor',[0.75 0.75 0.75],... + 'callback',[... + 'if k==''0'',',... + 'k='''';,',... + 'end,',... + 'k=[k,''1''];,',... + 'set(e1,''string'',k);']); +b2=uicontrol('parent',h0,... + 'units','points',... + 'tag','b2',... + 'style','pushbutton',... + 'string','2',... + 'fontsize',12,... + 'position',[45 45 35 20],... + 'backgroundcolor',[0.75 0.75 0.75],... + 'callback',[... + 'if k==''0'',',... + 'k='''';,',... + 'end,',... + 'k=[k,''2''];,',... + 'set(e1,''string'',k);']); +b3=uicontrol('parent',h0,... + 'units','points',... + 'tag','b3',... + 'style','pushbutton',... + 'string','3',... + 'fontsize',12,... + 'position',[85 45 35 20],... + 'backgroundcolor',[0.75 0.75 0.75],... + 'callback',[... + 'if k==''0'',',... + 'k='''';,',... + 'end,',... + 'k=[k,''3''];,',... + 'set(e1,''string'',k);']); +b14=uicontrol('parent',h0,... + 'units','points',... + 'tag','b14',... + 'style','pushbutton',... + 'string','/',... + 'fontsize',12,... + 'position',[125 45 35 20],... + 'backgroundcolor',[0.75 0.75 0.75],... + 'callback',[... + 'i=i+1;,',... + 'if i==1,',... + 'm=str2num(k);,',... + 'set(e1,''string'',''0'');,',... + 'end,',... + 'if i>1,',... + 'k=get(e1,''string'');,',... + 'if k==''0'',',... + 'errordlg(''除数不能为0'');,',... + 'end,',... + 'if ~(k==''0''),',... + 'if g==''+'',',... + 'm=m+str2num(k);,',... + 'end,',... + 'if g==''-'',',... + 'm=m-str2num(k);,',... + 'end,',... + 'if g==''*'',',... + 'm=m*str2num(k);,',... + 'end,',... + 'if g==''/'',',... + 'm=m/str2num(k);,',... + 'end,',... + 'set(e1,''string'',num2str(m));,',... + 'end,',... + 'i=1;,',... + 'end,',... + 'k=''0'';,',... + 'g=''/'';']); +b4=uicontrol('parent',h0,... + 'units','points',... + 'tag','b4',... + 'style','pushbutton',... + 'string','4',... + 'fontsize',12,... + 'position',[5 75 35 20],... + 'backgroundcolor',[0.75 0.75 0.75],... + 'callback',[... + 'if k==''0'',',... + 'k='''';,',... + 'end,',... + 'k=[k,''4''];,',... + 'set(e1,''string'',k);']); +b5=uicontrol('parent',h0,... + 'units','points',... + 'tag','b5',... + 'style','pushbutton',... + 'string','5',... + 'fontsize',12,... + 'position',[45 75 35 20],... + 'backgroundcolor',[0.75 0.75 0.75],... + 'callback',[... + 'if k==''0'',',... + 'k='''';,',... + 'end,',... + 'k=[k,''5''];,',... + 'set(e1,''string'',k);']); +b6=uicontrol('parent',h0,... + 'units','points',... + 'tag','b6',... + 'style','pushbutton',... + 'string','6',... + 'fontsize',12,... + 'position',[85 75 35 20],... + 'backgroundcolor',[0.75 0.75 0.75],... + 'callback',[... + 'if k==''0'',',... + 'k='''';,',... + 'end,',... + 'k=[k,''6''];,',... + 'set(e1,''string'',k);']); +b13=uicontrol('parent',h0,... + 'units','points',... + 'tag','b13',... + 'style','pushbutton',... + 'string','*',... + 'fontsize',12,... + 'position',[125 75 35 20],... + 'backgroundcolor',[0.75 0.75 0.75],... + 'callback',[... + 'i=i+1;,',... + 'if i==1,',... + 'm=str2num(k);,',... + 'set(e1,''string'',''0'');,',... + 'end,',... + 'if i>1,',... + 'k=get(e1,''string'');,',... + 'if g==''+'',',... + 'm=m+str2num(k);,',... + 'end,',... + 'if g==''-'',',... + 'm=m-str2num(k);,',... + 'end,',... + 'if g==''*'',',... + 'm=m*str2num(k);,',... + 'end,',... + 'if g==''/'',',... + 'if k==''0'',',... + 'errordlg(''除数不能为0'');,',... + 'end,',... + 'm=m/str2num(k);,',... + 'end,',... + 'set(e1,''string'',num2str(m));,',... + 'i=1;,',... + 'end,',... + 'k=''0'';,',... + 'g=''*'';']); +b7=uicontrol('parent',h0,... + 'units','points',... + 'tag','b7',... + 'style','pushbutton',... + 'string','7',... + 'fontsize',12,... + 'position',[5 105 35 20],... + 'backgroundcolor',[0.75 0.75 0.75],... + 'callback',[... + 'if k==''0'',',... + 'k='''';,',... + 'end,',... + 'k=[k,''7''];,',... + 'set(e1,''string'',k);']); +b8=uicontrol('parent',h0,... + 'units','points',... + 'tag','b8',... + 'style','pushbutton',... + 'string','8',... + 'fontsize',12,... + 'position',[45 105 35 20],... + 'backgroundcolor',[0.75 0.75 0.75],... + 'callback',[... + 'if k==''0'',',... + 'k='''';,',... + 'end,',... + 'k=[k,''8''];,',... + 'set(e1,''string'',k);']); +b9=uicontrol('parent',h0,... + 'units','points',... + 'tag','b9',... + 'style','pushbutton',... + 'string','9',... + 'fontsize',12,... + 'position',[85 105 35 20],... + 'backgroundcolor',[0.75 0.75 0.75],... + 'callback',[... + 'if k==''0'',',... + 'k='''';,',... + 'end,',... + 'k=[k,''9''];,',... + 'set(e1,''string'',k);']); +b12=uicontrol('parent',h0,... + 'units','points',... + 'tag','b12',... + 'style','pushbutton',... + 'string','-',... + 'fontsize',12,... + 'position',[125 105 35 20],... + 'backgroundcolor',[0.75 0.75 0.75],... + 'callback',[... + 'i=i+1;,',... + 'if i==1,',... + 'm=str2num(k);,',... + 'set(e1,''string'',''0'');,',... + 'end,',... + 'if i>1,',... + 'k=get(e1,''string'');,',... + 'if g==''+'',',... + 'm=m+str2num(k);,',... + 'end,',... + 'if g==''-'',',... + 'm=m-str2num(k);,',... + 'end,',... + 'if g==''*'',',... + 'm=m*str2num(k);,',... + 'end,',... + 'if g==''/'',',... + 'if k==''0'',',... + 'errordlg(''除数不能为0'');,',... + 'end,',... + 'm=m/str2num(k);,',... + 'end,',... + 'set(e1,''string'',num2str(m));,',... + 'i=1;,',... + 'end,',... + 'k=''0'';,',... + 'g=''-'';']); +e1=uicontrol('parent',h0,... + 'units','points',... + 'tag','e1',... + 'style','edit',... + 'horizontalalignment','right',... + 'fontsize',12,... + 'string','0',... + 'position',[45 135 115 20],... + 'backgroundcolor',[1 1 1]); +k=get(e1,'string'); +i=0; +m=0; \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21363.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21363.m" index f4b2a9c4307d178c5fa8f8e24fa8460a6b15da2d..9006b65b9be2e299b133b8080815071122c2cfe3 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21363.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21363.m" @@ -1,3 +1,86 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e19f6a85b1f775329718407e316cb2e3d06ec4144195303599d4feb7dd485ddb -size 2684 +h0=figure('toolbar','none',... + 'position',[200 150 350 200],... + 'name','实例63'); +choose=1; +e1=uicontrol('parent',h0,... + 'units','points',... + 'tag','e1',... + 'style','edit',... + 'backgroundcolor',[1 1 1],... + 'min',0,... + 'max',2,... + 'fontsize',12,... + 'horizontalalignment','left',... + 'position',[20 20 120 100]); +t1=uicontrol('parent',h0,... + 'units','points',... + 'tag','t1',... + 'style','text',... + 'string','请输入字母(大小写皆可):',... + 'fontsize',10,... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[20 125 120 15]); +b1=uicontrol('parent',h0,... + 'units','points',... + 'tag','b1',... + 'style','pushbutton',... + 'string','开始统计',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[180 100 60 20],... + 'callback',[... + 's=get(e1,''string'');,',... + 'n=length(s);,',... + 'jb=0;,',... + 'jl=0;,',... + 'for i=1:n,',... + 'if (abs(s(i))>64)&(abs(s(i))<91),',... + 'jb=jb+1;,',... + 'end,',... + 'if (abs(s(i))>96)&(abs(s(i))<123),',... + 'jl=jl+1;,',... + 'end,',... + 'end,',... + 'j=jb+jl;,',... + 'if choose==1,',... + 'msgbox([''共有字母'',num2str(j),''个!'',''其中大写字母'',num2str(jb),''个!''],''统计结果''),',... + 'end,',... + 'if choose==2,',... + 'msgbox([''共有字母'',num2str(j),''个!'',''其中小写字母'',num2str(jl),''个!''],''统计结果'');,',... + 'end']); +u1=uimenu('parent',h0,... + 'label','字母分类',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'tag','u1'); +u11=uimenu('parent',u1,... + 'label','大写字母',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'tag','u11',... + 'checked','on',... + 'callback',[... + 'set(u11,''checked'',''on'');,',... + 'set(u12,''checked'',''off'');,',... + 'choose=1;']); +u12=uimenu('parent',u1,... + 'label','小写字母',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'tag','u12',... + 'callback',[... + 'set(u12,''checked'',''on'');,',... + 'set(u11,''checked'',''off'');,',... + 'choose=2;']); +b2=uicontrol('parent',h0,... + 'units','points',... + 'tag','b2',... + 'style','pushbutton',... + 'string','清除',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[180 60 60 20],... + 'callback','set(e1,''string'','''')'); +b3=uicontrol('parent',h0,... + 'units','points',... + 'tag','b3',... + 'style','pushbutton',... + 'string','关闭',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[180 20 60 20],... + 'callback','close'); \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21364.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21364.m" index fb472c8bb8bf57b138ebdc6334ad7f6956a9ddca..0cccb2f242b05755c9e770c15dd4083e6dc126a4 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21364.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21364.m" @@ -1,3 +1,87 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:118825e56f870b01ef8bce433befea105bc40a314662ec2ed21e18af65102132 -size 2457 +h0=figure('toolbar','none',... + 'position',[200 150 300 150],... + 'name','实例64'); +now=fix(clock); +e1=uicontrol('parent',h0,... + 'units','points',... + 'tag','e1',... + 'style','edit',... + 'backgroundcolor',[1 1 1],... + 'horizontal','right',... + 'fontsize',12,... + 'position',[20 80 30 20],... + 'string',num2str(now(1))); +t1=uicontrol('parent',h0,... + 'units','points',... + 'tag','t1',... + 'style','text',... + 'string','年',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'fontsize',14,... + 'position',[55 80 20 20]); +e2=uicontrol('parent',h0,... + 'units','points',... + 'tag','e2',... + 'style','edit',... + 'backgroundcolor',[1 1 1],... + 'horizontal','right',... + 'fontsize',12,... + 'position',[80 80 30 20],... + 'string',num2str(now(2))); +t2=uicontrol('parent',h0,... + 'units','points',... + 'tag','t2',... + 'style','text',... + 'string','月',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'fontsize',14,... + 'position',[115 80 20 20]); +e3=uicontrol('parent',h0,... + 'units','points',... + 'tag','e3',... + 'style','edit',... + 'horizontal','right',... + 'backgroundcolor',[1 1 1],... + 'fontsize',12,... + 'position',[140 80 30 20],... + 'string',num2str(now(3))); +t3=uicontrol('parent',h0,... + 'units','points',... + 'tag','t3',... + 'style','text',... + 'string','日',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'fontsize',14,... + 'position',[175 80 20 20]); +e4=uicontrol('parent',h0,... + 'units','points',... + 'tag','e4',... + 'style','edit',... + 'backgroundcolor',[1 1 1],... + 'horizontal','right',... + 'fontsize',12,... + 'position',[20 30 100 20],... + 'string',[num2str(now(4)),':',num2str(now(5)),':',num2str(now(6))]); +b1=uicontrol('parent',h0,... + 'units','points',... + 'tag','b1',... + 'style','pushbutton',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'string','关闭',... + 'fontsize',12,... + 'position',[150 30 50 20],... + 'callback',[... + 'k=1;,',... + 'close']); +k=0; +while find(get(0,'children'))==h0 + now1=fix(clock) + set(e1,'string',num2str(now1(1))); + set(e2,'string',num2str(now1(2))); + set(e3,'string',num2str(now1(3))); + set(e4,'string',[num2str(now1(4)),':',num2str(now1(5)),':',num2str(now1(6))]); + pause(1) + if k==1 + break + end +end \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21365.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21365.m" index 8fd6f0fa970757f86d04c41fba837f48ac80dc63..72f7c9e493e47840631ba0c5cc036b92451025a0 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21365.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21365.m" @@ -1,3 +1,184 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b617b43c33732c344bb58c88acee1a13ee9c21978b773d95260f82e13f35e8a8 -size 5583 +h0=figure('toolbar','none',... + 'position',[200 150 300 250],... + 'name','实例65'); +huidiao=[... + 'k=0;,',... + 'fyear=str2num(get(e1,''string''));,',... + 'fmonth=str2num(get(e2,''string''));,',... + 'fday=str2num(get(e3,''string''));,',... + 'syear=str2num(get(e4,''string''));,',... + 'smonth=str2num(get(e5,''string''));,',... + 'sday=str2num(get(e6,''string''));,',... + 'month=[0 31 28 31 30 31 30 31 31 30 31 30 31];,',... + 'k=fix(fyear/4);,',... + 'if rem(fyear,4)==0,',... + 'month(3)=29;,',... + 'else,',... + 'k=k+1;,',... + 'month(3)=28;,',... + 'end,',... + 'sum=0;,',... + 'for i=1:fmonth,',... + 'sum=sum+month(i);,',... + 'end,',... + 'fdday=fyear*365+sum+fday+k;,',... + 'l=fix(syear/4);,',... + 'if rem(syear,4)==0,',... + 'month(3)=29;,',... + 'else,',... + 'l=l+1;,',... + 'month(3)=28;,',... + 'end,',... + 'ssum=0;,',... + 'for i=1:smonth,',... + 'ssum=ssum+month(i);,',... + 'end,',... + 'sdday=syear*365+ssum+sday+l;,',... + 'dday=abs(fdday-sdday);,',... + 'set(e7,''string'',[num2str(dday),''天'']);']; +t0=uicontrol('parent',h0,... + 'units','points',... + 'tag','t0',... + 'style','text',... + 'string','开始日期:',... + 'horizontalalignment','right',... + 'fontsize',15,... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[10 160 80 20]); +t8=uicontrol('parent',h0,... + 'units','points',... + 'tag','t8',... + 'style','text',... + 'string','结束日期:',... + 'horizontalalignment','right',... + 'fontsize',15,... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[115 160 80 20]); +e1=uicontrol('parent',h0,... + 'units','points',... + 'tag','e1',... + 'style','edit',... + 'horizontalalignment','right',... + 'backgroundcolor',[1 1 1],... + 'position',[20 130 50 20]); +t1=uicontrol('parent',h0,... + 'units','points',... + 'tag','t1',... + 'style','text',... + 'string','年',... + 'horizontalalignment','left',... + 'fontsize',15,... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[75 130 20 20]); +e2=uicontrol('parent',h0,... + 'units','points',... + 'tag','e2',... + 'style','edit',... + 'horizontalalignment','right',... + 'backgroundcolor',[1 1 1],... + 'position',[20 100 50 20]); +t2=uicontrol('parent',h0,... + 'units','points',... + 'tag','t2',... + 'style','text',... + 'string','月',... + 'horizontalalignment','left',... + 'fontsize',15,... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[75 100 20 20]); +e3=uicontrol('parent',h0,... + 'units','points',... + 'tag','e3',... + 'style','edit',... + 'horizontalalignment','right',... + 'backgroundcolor',[1 1 1],... + 'position',[20 70 50 20]); +t3=uicontrol('parent',h0,... + 'units','points',... + 'tag','t3',... + 'style','text',... + 'string','日',... + 'horizontalalignment','left',... + 'fontsize',15,... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[75 70 20 20]); +e4=uicontrol('parent',h0,... + 'units','points',... + 'tag','e4',... + 'style','edit',... + 'horizontalalignment','right',... + 'backgroundcolor',[1 1 1],... + 'position',[120 130 50 20]); +t4=uicontrol('parent',h0,... + 'units','points',... + 'tag','t4',... + 'style','text',... + 'string','年',... + 'horizontalalignment','left',... + 'fontsize',15,... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[175 130 20 20]); +e5=uicontrol('parent',h0,... + 'units','points',... + 'tag','e5',... + 'style','edit',... + 'horizontalalignment','right',... + 'backgroundcolor',[1 1 1],... + 'position',[120 100 50 20]); +t5=uicontrol('parent',h0,... + 'units','points',... + 'tag','t5',... + 'style','text',... + 'string','月',... + 'horizontalalignment','left',... + 'fontsize',15,... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[175 100 20 20]); +e6=uicontrol('parent',h0,... + 'units','points',... + 'tag','e6',... + 'style','edit',... + 'horizontalalignment','right',... + 'backgroundcolor',[1 1 1],... + 'position',[120 70 50 20]); +t6=uicontrol('parent',h0,... + 'units','points',... + 'tag','t6',... + 'style','text',... + 'string','日',... + 'horizontalalignment','left',... + 'fontsize',15,... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[175 70 20 20]); +b1=uicontrol('parent',h0,... + 'units','points',... + 'tag','b1',... + 'style','pushbutton',... + 'string','计算日期',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[20 40 50 20],... + 'callback',huidiao); +b2=uicontrol('parent',h0,... + 'units','points',... + 'tag','b2',... + 'style','pushbutton',... + 'string','关闭',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[20 10 50 20],... + 'callback','close'); +e7=uicontrol('parent',h0,... + 'units','points',... + 'tag','e7',... + 'style','edit',... + 'horizontalalignment','right',... + 'backgroundcolor',[1 1 1],... + 'position',[120 10 80 20]); +t7=uicontrol('parent',h0,... + 'units','points',... + 'tag','t7',... + 'style','text',... + 'string','两个日期相差:',... + 'horizontalalignment','right',... + 'fontsize',15,... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[100 30 110 20]); \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21366.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21366.m" index 8ec538272303c691969387a8fcc1440fb6b4eb58..244ae7e36448f5edd678430780d5debf246bbfb6 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21366.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21366.m" @@ -1,3 +1,79 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3f5dfc13d29d37e47f6b35ad1d783d09ecee6c57e45a9c4578d19b88fb7012e2 -size 2408 +h0=figure('toolbar','none',... + 'position',[200 150 350 200],... + 'name','实例66'); +e1=uicontrol('parent',h0,... + 'units','points',... + 'tag','e1',... + 'style','edit',... + 'backgroundcolor',[1 1 1],... + 'position',[20 90 80 20],... + 'fontsize',12,... + 'horizontalalignment','right'); +e2=uicontrol('parent',h0,... + 'units','points',... + 'tag','e2',... + 'style','edit',... + 'backgroundcolor',[1 1 1],... + 'position',[160 90 80 20],... + 'fontsize',12,... + 'horizontalalignment','right'); +t1=uicontrol('parent',h0,... + 'units','points',... + 'tag','t1',... + 'style','text',... + 'string','初始数值(十进制):',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[15 110 90 20],... + 'fontsize',12,... + 'horizontalalignment','left'); +t2=uicontrol('parent',h0,... + 'units','points',... + 'tag','t2',... + 'style','text',... + 'string','转换结果:',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[155 110 90 20],... + 'fontsize',12,... + 'horizontalalignment','left'); +b1=uicontrol('parent',h0,... + 'units','points',... + 'tag','b1',... + 'style','pushbutton',... + 'string','二进制',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[30 50 50 20],... + 'callback',[... + 'k=get(e1,''string'');,',... + 'k2=str2num(k);,',... + 'bk=dec2bin(k2);,',... + 'set(e2,''string'',num2str(bk));']); +b2=uicontrol('parent',h0,... + 'units','points',... + 'tag','b2',... + 'style','pushbutton',... + 'string','清除',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[170 50 50 20],... + 'callback',[... + 'set(e1,''string'','''');,',... + 'set(e2,''string'','''');']); +b3=uicontrol('parent',h0,... + 'units','points',... + 'tag','b3',... + 'style','pushbutton',... + 'string','十六进制',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[30 15 50 20],... + 'callback',[... + 'k=get(e1,''string'');,',... + 'k3=str2num(k);,',... + 'hk=dec2hex(k3);,',... + 'set(e2,''string'',num2str(hk));']); +b4=uicontrol('parent',h0,... + 'units','points',... + 'tag','b4',... + 'style','pushbutton',... + 'string','关闭',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[170 15 50 20],... + 'callback','close'); diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21367.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21367.m" index aebc87373132be50b58ecefc0d28732d6a89f559..0e298b5ad5ab6a4649dcc4c53f6f7b5a4c1f9a6d 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21367.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21367.m" @@ -1,3 +1,56 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3c052177afbb2669b0e09e29b9ed3a2aea624373045bdacf9137ff4b0d6a2628 -size 1736 +h0=figure('toolbar','none',... + 'position',[198 56 350 468],... + 'name','实例67'); +h1=axes('parent',h0,... + 'position',[0.2 0.45 0.6 0.5],... + 'visible','off'); +I=imread('tire.tif'); +imshow(I) +b1=uicontrol('parent',h0,... + 'units','points',... + 'tag','b1',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'style','pushbutton',... + 'string','边沿操作',... + 'position',[30 100 50 20],... + 'callback',[... + 'cla,',... + 'I=imread(''tire.tif'');,',... + 'f=inline(''max(x(:))'');,',... + 'I2=nlfilter(I,[2 2],f);,',... + 'imshow(I2)']); +b2=uicontrol('parent',h0,... + 'units','points',... + 'tag','b2',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'style','pushbutton',... + 'string','显示块操作',... + 'position',[100 100 50 20],... + 'callback',[... + 'cla,',... + 'I=imread(''tire.tif'');,',... + 'f=inline(''uint8(round(mean2(x)*ones(size(x))))'');,',... + 'I2=blkproc(I,[6 6],f);,',... + 'imshow(I2)']); +b3=uicontrol('parent',h0,... + 'units','points',... + 'tag','b3',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'style','pushbutton',... + 'string','交叠块操作',... + 'position',[170 100 50 20],... + 'callback',[... + 'cla,',... + 'I=imread(''tire.tif'');,',... + 'f=inline(''uint8(round(mean2(x)*ones(size(x))))'');,',... + 'I2=blkproc(I,[6 6],[3 3],f);,',... + 'imshow(I2)']); +b4=uicontrol('parent',h0,... + 'units','points',... + 'tag','b4',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'style','pushbutton',... + 'string','关闭',... + 'fontsize',14,... + 'position',[90 50 70 30],... + 'callback','close'); \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21368.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21368.m" index 72946e349862c0ac535115329d7021a306ebdf1e..6b89f1a7cc961674bea17a88af6d2c55b5738d62 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21368.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21368.m" @@ -1,3 +1,42 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e5ab721b9e06326154bf4eb62329c750370fda681f5f39fdaef0c9c0c51ff129 -size 1263 +h0=figure('toolbar','none',... + 'position',[198 56 350 468],... + 'name','过滤操作'); +h1=axes('parent',h0,... + 'position',[0.3 0.45 0.5 0.5],... + 'visible','off'); +I=imread('blood1.tif'); +imshow(I) +b1=uicontrol('parent',h0,... + 'units','points',... + 'tag','b1',... + 'style','pushbutton',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'string','均平过滤',... + 'position',[50 120 50 20],... + 'callback',[... + 'cla,',... + 'I=imread(''blood1.tif'');,',... + 'h=fspecial(''average'',6);,',... + 'I2=uint8(round(filter2(h,I)));,',... + 'imshow(I2)']); +b2=uicontrol('parent',h0,... + 'units','points',... + 'tag','b2',... + 'style','pushbutton',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'string','Sobel过滤',... + 'position',[150 120 50 20],... + 'callback',[... + 'cla,',... + 'I=imread(''blood1.tif'');,',... + 'h=fspecial(''sobel'');,',... + 'I2=filter2(h,I);,',... + 'imshow(I2,[])']); +b1=uicontrol('parent',h0,... + 'units','points',... + 'tag','b1',... + 'style','pushbutton',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'string','关闭',... + 'position',[85 60 80 30],... + 'callback','close'); diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21369.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21369.m" index 309a558bfc84e3afd91a69ee5e92775773de00bb..488afc3487dff20bedec8ef8de4e91fa6870f609 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21369.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21369.m" @@ -1,3 +1,64 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d6d0fa365f0cc23b92a303aeaeb2e93c23ec8c8aaa43131943f2b1c04facf348 -size 1956 +h0=figure('toolbar','none',... + 'position',[198 56 350 468],... + 'name','频率操作'); +h1=axes('parent',h0,... + 'position',[0.3 0.45 0.5 0.5],... + 'visible','off'); +b=remez(10,[0 0.4 0.6 1],[1 1 0 0]); +h=ftrans2(b); +[H,W]=freqz(b,1,64,'whole'); +colormap(jet(64)) +plot(W/pi-1,fftshift(abs(H))) +b1=uicontrol('parent',h0,... + 'units','points',... + 'tag','b1',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'style','pushbutton',... + 'string','频率变换',... + 'position',[30 100 50 20],... + 'callback',[... + 'cla,',... + 'b=remez(10,[0 0.4 0.6 1],[1 1 0 0]);,',... + 'h=ftrans2(b);,',... + '[H,W]=freqz(b,1,64,''whole'');,',... + 'colormap(jet(64)),',... + 'freqz2(h,[32 32])']); +b2=uicontrol('parent',h0,... + 'units','points',... + 'tag','b2',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'style','pushbutton',... + 'string','频率采样一',... + 'position',[100 100 50 20],... + 'callback',[... + 'cla,',... + 'Hd=zeros(11,11);,',... + 'Hd(4:8,4:8)=1;,',... + '[f1,f2]=freqspace(11,''meshgrid'');,',... + 'mesh(f1,f2,Hd),',... + 'axis([-1 1 -1 1 0 1.2]),',... + 'colormap(jet(64))']); +b3=uicontrol('parent',h0,... + 'units','points',... + 'tag','b3',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'style','pushbutton',... + 'string','频率采样二',... + 'position',[170 100 50 20],... + 'callback',[... + 'cla,',... + 'Hd=zeros(11,11);,',... + 'Hd(4:8,4:8)=1;,',... + 'H=fsamp2(Hd);,',... + 'freqz2(h,[32 32]),',... + 'axis([-1 1 -1 1 0 1.2]),',... + 'colormap(jet(64))']); +b4=uicontrol('parent',h0,... + 'units','points',... + 'tag','b4',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'style','pushbutton',... + 'string','关闭',... + 'fontsize',15,... + 'position',[80 50 80 30],... + 'callback','close'); \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21370.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21370.m" index 65abba0cb971526b3e4c0312520f5eda028ae10b..c57b80632bb4b3a23f18928cbc09ac419ad8458e 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21370.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21370.m" @@ -1,3 +1,65 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d8be6ce19f70f482772435f58516dd7c28374097a47deb11d3594bb1ada38647 -size 2051 +h0=figure('toolbar','none',... + 'position',[198 56 350 468],... + 'name','函数变换'); +h1=axes('parent',h0,... + 'position',[0.25 0.45 0.5 0.5],... + 'visible','off'); +I=imread('cameraman.tif'); +imshow(I) +b1=uicontrol('parent',h0,... + 'units','points',... + 'tag','b1',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'style','pushbutton',... + 'string','图像压缩',... + 'position',[30 100 50 20],... + 'callback',[... + 'cla,',... + 'I=imread(''cameraman.tif'');,',... + 'I2=im2double(I);,',... + 'imshow(I2)']); +b2=uicontrol('parent',h0,... + 'units','points',... + 'tag','b2',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'style','pushbutton',... + 'string','图像解压',... + 'position',[100 100 50 20],... + 'callback',[... + 'cla,',... + 'I=imread(''cameraman.tif'');,',... + 'I=im2double(I);,',... + 'T=dctmtx(8);,',... + 'B=blkproc(I,[8 8],''P1*x*P2'',T,T'');,',... + 'mask=[1 1 1 1 0 0 0 0;,',... + '1 1 1 0 0 0 0 0;,',... + '1 1 0 0 0 0 0 0;,',... + '1 0 0 0 0 0 0 0;,',... + '0 0 0 0 0 0 0 0;,',... + '0 0 0 0 0 0 0 0;,',... + '0 0 0 0 0 0 0 0;,',... + '0 0 0 0 0 0 0 0];,',... + 'B2=blkproc(B,[8 8],''P1.*x'',mask);,',... + 'I2=blkproc(B2,[8 8],''P1*x*P2'',T'',T);,',... + 'imshow(I2)']); +b3=uicontrol('parent',h0,... + 'units','points',... + 'tag','b3',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'style','pushbutton',... + 'string','线条解析',... + 'position',[170 100 50 20],... + 'callback',[... + 'cla,',... + 'I=imread(''cameraman.tif'');,',... + 'BW=edge(I);,',... + 'imshow(BW)']); +b4=uicontrol('parent',h0,... + 'units','points',... + 'tag','b4',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'style','pushbutton',... + 'string','关闭',... + 'fontsize',15,... + 'position',[80 50 80 30],... + 'callback','close'); \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21371.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21371.m" index 573998fecddde41097495497354d7cf949ddfed1..02c6ede334623868e3cc96616bc1285093ff03e7 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21371.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21371.m" @@ -1,3 +1,82 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8b20c89f5edd93991509884f531b7e231f6bb488dff30c4828e4b66e0a8ca662 -size 2286 +h0=figure('toolbar','none',... + 'position',[198 56 350 468],... + 'name','实例71'); +h1=axes('parent',h0,... + 'position',[0.3 0.45 0.5 0.5],... + 'visible','off'); +P=phantom(256); +imshow(P) +b1=uicontrol('parent',h0,... + 'units','points',... + 'tag','b1',... + 'style','pushbutton',... + 'string','变换一',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[30 100 50 20],... + 'callback',[... + 'cla,',... + 'k=1;,',... + 'theta1=0:10:170;,',... + 'R1=radon(P,theta1);,',... + 'imagesc(R1),',... + 'colormap(hot),',... + 'colorbar']); +b2=uicontrol('parent',h0,... + 'units','points',... + 'tag','b2',... + 'style','pushbutton',... + 'string','变换二',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[100 100 50 20],... + 'callback',[... + 'cla,',... + 'k=2;,',... + 'theta2=0:5:175;,',... + 'R2=radon(P,theta2);,',... + 'imagesc(R2),',... + 'colormap(hot),',... + 'colorbar']); +b3=uicontrol('parent',h0,... + 'units','points',... + 'tag','b3',... + 'style','pushbutton',... + 'string','变换三',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[170 100 50 20],... + 'callback',[... + 'cla,',... + 'k=3;,',... + 'theta3=0:2:178;,',... + 'R3=radon(P,theta3);,',... + 'imagesc(R3),',... + 'colormap(hot),',... + 'colorbar']); +b4=uicontrol('parent',h0,... + 'units','points',... + 'tag','b4',... + 'style','pushbutton',... + 'string','原始图像',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[50 50 70 30],... + 'callback',[... + 'cla,',... + 'if k==1,',... + 'I1=iradon(R1,10);,',... + 'imshow(I1),',... + 'end,',... + 'if k==2,',... + 'I2=iradon(R2,5);,',... + 'imshow(I2),',... + 'end,',... + 'if k==3,',... + 'I3=iradon(R3,2);,',... + 'imshow(I3),',... + 'end']); +b5=uicontrol('parent',h0,... + 'units','points',... + 'tag','b5',... + 'style','pushbutton',... + 'string','关闭',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[150 50 70 30],... + 'callback','close'); \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21372.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21372.m" index 42b33452cc1ee69ebee10d8ae6d13ab5d4234248..55ec78ff35a39bec8a6896dcb78f4b6d27731bab 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21372.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21372.m" @@ -1,3 +1,92 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:522be35b8e7b011df9f06c441f6773ff378639600f6d4c207533ec8c3b586cdf -size 2576 +h0=figure('toolbar','none',... + 'position',[198 56 350 468],... + 'name','实例72'); +h1=axes('parent',h0,... + 'position',[0.25 0.45 0.5 0.5],... + 'visible','off'); +I=imread('rice.tif'); +imshow(I) +k=0; +b1=uicontrol('parent',h0,... + 'units','points',... + 'tag','b1',... + 'style','pushbutton',... + 'string','图像轮廓图',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[20 100 60 20],... + 'callback',[... + 'cla,',... + 'k=1;,',... + 'I=imread(''rice.tif'');,',... + 'imcontour(I)']); +b2=uicontrol('parent',h0,... + 'units','points',... + 'tag','b2',... + 'style','pushbutton',... + 'string','SOBEL边界图',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[100 100 60 20],... + 'callback',[... + 'cla,',... + 'k=2;,',... + 'I=imread(''rice.tif'');,',... + 'BW=edge(I,''sobel'');,',... + 'imshow(BW)']); +b3=uicontrol('parent',h0,... + 'units','points',... + 'tag','b3',... + 'style','pushbutton',... + 'string','CANNY边界图',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[180 100 60 20],... + 'callback',[... + 'cla,',... + 'k=3;,',... + 'I=imread(''rice.tif'');,',... + 'BW=edge(I,''canny'');,',... + 'imshow(BW)']); +b4=uicontrol('parent',h0,... + 'units','points',... + 'tag','b4',... + 'style','pushbutton',... + 'string','灰度调整',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[20 50 60 20],... + 'callback',[... + 'cla,',... + 'k=4;,',... + 'I=imread(''rice.tif'');,',... + 'J=imadjust(I,[0.15 0.9],[0 1]);,',... + 'imshow(J,64)']); +b5=uicontrol('parent',h0,... + 'units','points',... + 'tag','b5',... + 'style','pushbutton',... + 'string','图像柱状图',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[180 50 60 20],... + 'callback',[... + 'if k==0,',... + 'figure,',... + 'imhist(I,64),',... + 'end,',... + 'if k==1,',... + 'imhist(I,64),',... + 'end,',... + 'if k==2,',... + 'imhist(BW,64),',... + 'end,',... + 'if k==3,',... + 'imhist(BW,64),',... + 'end,',... + 'if k==4,',... + 'imhist(J),',... + 'end']); +b6=uicontrol('parent',h0,... + 'units','points',... + 'tag','b6',... + 'style','pushbutton',... + 'string','关闭',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[100 50 60 20],... + 'callback','close'); \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21373.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21373.m" index 65e385a5fd5f54a23a718b8f575f8396ad43ab6d..121ebfaffd4dabc8a69a3ba22365c1410de9758a 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21373.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21373.m" @@ -1,3 +1,74 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2ae7d41e92f7431590c662e40d955e59356eec942716c353b3bb9ed23cee2ab3 -size 2229 +h0=figure('toolbar','none',... + 'position',[198 56 350 468],... + 'name','实例73'); +h1=axes('parent',h0,... + 'position',[0.25 0.45 0.5 0.5],... + 'visible','off'); +I=imread('eight.tif'); +imshow(I) +u1=uimenu('parent',h0,... + 'tag','u1',... + 'label','添加噪声',... + 'backgroundcolor',[0.75 0.75 0.75]); +u11=uimenu('parent',u1,... + 'tag','u11',... + 'label','SALT&PEPPER噪声',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'callback',[... + 'set(u11,''checked'',''on'');,',... + 'set(u12,''checked'',''off'');,',... + 'cla,',... + 'I=imnoise(I,''salt & pepper'',0.02);,',... + 'imshow(I)']); +u12=uimenu('parent',u1,... + 'tag','u12',... + 'label','GAUSSIAN噪声',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'callback',[... + 'set(u12,''checked'',''on'');,',... + 'set(u11,''checked'',''off'');,',... + 'cla,',... + 'I=imnoise(I,''gaussian'',0,0.005);,',... + 'imshow(I)']); +b1=uicontrol('parent',h0,... + 'units','points',... + 'tag','b1',... + 'style','pushbutton',... + 'string','均平过滤',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[30 100 50 20],... + 'callback',[... + 'cla,',... + 'J=filter2(fspecial(''average'',3),I)/255;,',... + 'imshow(J)']); +b2=uicontrol('parent',h0,... + 'units','points',... + 'tag','b2',... + 'style','pushbutton',... + 'string','中值过滤',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[100 100 50 20],... + 'callback',[... + 'cla,',... + 'J=medfilt2(I,[3 3]);,',... + 'imshow(J)']); +b3=uicontrol('parent',h0,... + 'units','points',... + 'tag','b3',... + 'style','pushbutton',... + 'string','自适应过滤',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[170 100 50 20],... + 'callback',[... + 'cla,',... + 'J=wiener2(I,[5 5]);,',... + 'imshow(J)']); +b4=uicontrol('parent',h0,... + 'units','points',... + 'tag','b4',... + 'style','pushbutton',... + 'string','关闭',... + 'fontsize',15,... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[90 50 70 30],... + 'callback','close'); \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21374.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21374.m" index e97ab629b083ad744697eff7ac3f14fbdb2d12ea..68d9dfab84c5f79109e357ffc33bcd21048f0b81 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21374.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21374.m" @@ -1,3 +1,58 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:53708fea706bc4a23ab30e964dadf8b31144458ad1afb13daecc558dac0abb62 -size 1715 +h0=figure('toolbar','none',... + 'position',[198 56 350 468],... + 'name','实例74'); +h1=axes('parent',h0,... + 'position',[0.25 0.45 0.5 0.5],... + 'visible','off'); +I=imread('trees.tif'); +imshow(I) +b1=uicontrol('parent',h0,... + 'units','points',... + 'tag','b1',... + 'style','pushbutton',... + 'string','区域过滤一',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[30 100 50 20],... + 'callback',[... + 'cla,',... + 'I=imread(''trees.tif'');,',... + 'imshow(I),',... + 'BW=roipoly;,',... + 'h=fspecial(''unsharp'');,',... + 'I2=roifilt2(h,I,BW);,',... + 'imshow(I2)']); +b2=uicontrol('parent',h0,... + 'units','points',... + 'tag','b2',... + 'style','pushbutton',... + 'string','区域过滤二',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[100 100 50 20],... + 'callback',[... + 'cla,',... + 'BW=imread(''text.tif'');,',... + 'f=inline(''imadjust(x,[],[],0.01)'');,',... + 'I2=roifilt2(I,BW,f);,',... + 'imshow(I2)']); +b3=uicontrol('parent',h0,... + 'units','points',... + 'tag','b3',... + 'style','pushbutton',... + 'string','区域填充',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[170 100 50 20],... + 'callback',[... + 'cla,',... + 'load trees,',... + 'I=ind2gray(X,map);,',... + 'imshow(I),',... + 'I2=roifill;,',... + 'imshow(I2)']); +b4=uicontrol('parent',h0,... + 'units','points',... + 'tag','b4',... + 'style','pushbutton',... + 'string','关闭',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[90 50 70 30],... + 'callback','close'); \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21375.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21375.m" index 728c171eb2af44e7dcfc81a0aeda1d0ba14439b3..811337544aeabbaa21b413a7122adb0a66f50320 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21375.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21375.m" @@ -1,3 +1,78 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0c6d4fe033d2290b9656d3a3234f99ee975d402293ded800acbe144721827178 -size 2324 +h0=figure('toolbar','none',... + 'position',[198 56 350 468],... + 'name','实例75'); +h1=axes('parent',h0,... + 'position',[0.12 0.45 0.75 0.5],... + 'visible','off'); +I=imread('flowers.tif'); +imshow(I) +b1=uicontrol('parent',h0,... + 'units','points',... + 'tag','b1',... + 'style','pushbutton',... + 'string','减少颜色',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[30 100 50 20],... + 'callback',[... + 'cla,',... + '[X,map]=imread(''flowers.tif'');,',... + '[Y,map2]=imapprox(X,map,64);,',... + 'image(Y),',... + 'colormap(map2)']); +b2=uicontrol('parent',h0,... + 'units','points',... + 'tag','b2',... + 'style','pushbutton',... + 'string','颜色抖动',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[100 100 50 20],... + 'callback',[... + 'cla,',... + 'I=imread(''flowers.tif'');,',... + '[X,map]=rgb2ind(I,128,''nodither'');,',... + 'imshow(X)']); +b3=uicontrol('parent',h0,... + 'units','points',... + 'tag','b3',... + 'style','pushbutton',... + 'string','颜色转换一',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[170 100 50 20],... + 'callback',[... + 'cla,',... + 'I=imread(''flowers.tif'');,',... + 'Y=rgb2ntsc(I);,',... + 'J=Y(:,:,1);,',... + 'imshow(J)']); +b4=uicontrol('parent',h0,... + 'units','points',... + 'tag','b4',... + 'style','pushbutton',... + 'string','关闭',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[170 50 50 20],... + 'callback','close'); +b5=uicontrol('parent',h0,... + 'units','points',... + 'tag','b5',... + 'style','pushbutton',... + 'string','颜色转换三',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[100 50 50 20],... + 'callback',[... + 'cla,',... + 'I=imread(''flowers.tif'');,',... + 'J=rgb2ycbcr(I);,',... + 'imshow(J)']); +b6=uicontrol('parent',h0,... + 'units','points',... + 'tag','b6',... + 'style','pushbutton',... + 'string','颜色转换二',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[30 50 50 20],... + 'callback',[... + 'cla,',... + 'I=imread(''flowers.tif'');,',... + 'J=rgb2hsv(I);,',... + 'imshow(J)']); \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21376.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21376.m" index 054e600169e4d39f0a8c397db0a0e816f5e80c08..203431947d5e0d21f97433152ca56d63b5e27706 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21376.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21376.m" @@ -1,3 +1,35 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8256eb77c87363fa4747c7f8752586c8f538d33e6a873376001a93a6a9a3eae7 -size 1124 +h0=figure('toolbar','none',... + 'position',[198 56 500 500],... + 'name','实例76'); +h1=axes('parent',h0,... + 'position',[0.15 0.5 0.7 0.5],... + 'visible','off'); +u1=uimenu('parent',h0,... + 'label','加载图像',... + 'backgroundcolor',[0.753 0.753 0.753],... + 'tag','u1',... + 'callback',[... + '[X,map]=imread(''800.jpg'',''jpg'');,',... + 'Y=imresize(X,2);,',... + 'image(Y),',... + 'colormap(map),',... + 'axis image,',... + 'camva(camva/2.5),',... + 'disp(''单击鼠标左键点取需要的点''),',... + 'disp(''单击鼠标右键确定最后一个点''),',... + 'while 1,',... + '[x,y]=ginput(1);,',... + 'if ~strcmp(get(gcf,''selectiontype''),''normal''),',... + 'break,',... + 'end,',... + 'ct=camtarget;,',... + 'dx=x-ct(1);,',... + 'dy=y-ct(2);,',... + 'camdolly(dx,dy,ct(3),''movetarget'',''data''),',... + 'drawnow,',... + 'end']); +u2=uimenu('parent',h0,... + 'label','关闭',... + 'backgroundcolor',[0.753 0.753 0.753],... + 'tag','u2',... + 'callback','close'); \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21377.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21377.m" index 84f5c74994daabdc3871a85e952cea4ad6e3be08..3803ae8d07dc454619827280278dca010226bfe9 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21377.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21377.m" @@ -1,3 +1,74 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0ae91ac0bbc2df17852db01afeb7340bd5cde140bb97121051150dd94e0a9850 -size 2971 +h0=figure('toolbar','none',... + 'position',[198 56 450 468],... + 'name','实例77'); +h1=axes('parent',h0,... + 'position',[0.3 0.45 0.5 0.5],... + 'visible','off'); +load wind +b1huidiao=[... + 'cla,',... + 'xmin = min(x(:));,',... + 'xmax = max(x(:));,',... + 'ymax = max(y(:));,',... + 'zmin = min(z(:));,',... + 'wind_speed = sqrt(u.^2 + v.^2 + w.^2);,',... + 'hsurfaces = slice(x,y,z,wind_speed,[xmin,100,xmax],ymax,zmin);,',... + 'set(hsurfaces,''FaceColor'',''interp'',''EdgeColor'',''none''),',... + 'hcont = contourslice(x,y,z,wind_speed,[xmin,100,xmax],ymax,zmin);,',... + 'set(hcont,''EdgeColor'',[.7,.7,.7],''LineWidth'',.5),',... + '[sx,sy,sz] = meshgrid(80,20:10:50,0:5:15);,',... + 'hlines = streamline(x,y,z,y,v,w,sx,sy,sz);,',... + 'set(hlines,''LineWidth'',2,''Color'',''r''),',... + 'view(3),',... + 'daspect([2,2,1]),',... + 'axis tight']; +b2huidiao=[... + 'cla,',... + 'wind_speed = sqrt(u.^2 + v.^2 + w.^2);,',... + 'hiso = patch(isosurface(x,y,z,wind_speed,40));,',... + 'isonormals(x,y,z,wind_speed,hiso),',... + 'set(hiso,''FaceColor'',''red'',''EdgeColor'',''none'');,',... + 'hcap = patch(isocaps(x,y,z,wind_speed,40),''FaceColor'',''interp'',''EdgeColor'',''none'');,',... + 'colormap hsv,',... + 'daspect([1,1,1]);,',... + '[f verts] = reducepatch(isosurface(x,y,z,wind_speed,30),0.07);,',... + 'h1 = coneplot(x,y,z,u,v,w,verts(:,1),verts(:,2),verts(:,3),3);,',... + 'set(h1,''FaceColor'',''blue'',''EdgeColor'',''none'');,',... + 'xrange = linspace(min(x(:)),max(x(:)),10);,',... + 'yrange = linspace(min(y(:)),max(y(:)),10);,',... + 'zrange = 3:4:15;,',... + '[cx,cy,cz] = meshgrid(xrange,yrange,zrange);,',... + 'h2 = coneplot(x,y,z,u,v,w,cx,cy,cz,2);,',... + 'set(h2,''FaceColor'',''green'',''EdgeColor'',''none'');,',... + 'axis tight,',... + 'box on,',... + 'camproj perspective,',... + 'camzoom(1.25),',... + 'view(65,45),',... + 'camlight(-45,45),',... + 'lighting phong,',... + 'set(hcap,''AmbientStrength'',.6)']; +b1=uicontrol('parent',h0,... + 'style','pushbutton',... + 'units','points',... + 'tag','b1',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'string','可视化',... + 'position',[50 100 60 20],... + 'callback',b1huidiao); +b2=uicontrol('parent',h0,... + 'style','pushbutton',... + 'units','points',... + 'tag','b2',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'string','锥形图',... + 'position',[200 100 60 20],... + 'callback',b2huidiao); +b3=uicontrol('parent',h0,... + 'style','pushbutton',... + 'units','points',... + 'tag','b3',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'string','关闭',... + 'position',[125 60 60 20],... + 'callback','close'); diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21378.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21378.m" index 56ff388bb267ffdd6a19f538b1ed17aee2531334..3a2717811689d8d785ceb26ea30f7f84636445da 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21378.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21378.m" @@ -1,3 +1,66 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0c15d55e8f5b7ee6d885b09027a41cfa1eaf02c5a33d7bb430246f5270b22746 -size 1945 +h0=figure('toolbar','none',... + 'position',[198 56 350 468],... + 'name','实例78'); +h1=axes('parent',h0,... + 'position',[0.25 0.45 0.5 0.5],... + 'visible','off'); +load imdemos flower +imshow(flower) +colormap(copper) +n=size(X,1); +b1=uicontrol('parent',h0,... + 'units','points',... + 'tag','b1',... + 'style','pushbutton',... + 'string','轮廓图',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[30 100 50 20],... + 'callback',[... + 'cla,',... + '[X,map]=imread(''flowers.tif'');,',... + 'X=double(flower);,',... + 'X=(0.25/256)*X;,',... + 'C=copper(35);,',... + 'set(gca,''colororder'',C(21:35,:),''box'',''on'');,',... + 'imcontour(X,3);,',... + 'axis([1 n 1 n]),',... + 'axis(''ij''),',... + 'axis(''square'')']); +b2=uicontrol('parent',h0,... + 'units','points',... + 'tag','b2',... + 'style','pushbutton',... + 'string','伪彩图',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[100 100 50 20],... + 'callback',[... + 'cla,',... + 'D=-del2(X);,',... + 'pcolor(D),',... + 'axis([1 n 1 n]),',... + 'axis(''ij''),',... + 'shading(''flat'')']); +b3=uicontrol('parent',h0,... + 'units','points',... + 'tag','b3',... + 'style','pushbutton',... + 'string','3D表面图',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[170 100 50 20],... + 'callback',[... + 'cla,',... + 'D=-del2(X);,',... + 'surf(X,D),',... + 'colormap(copper),',... + 'axis([1 n 1 n 0 1]),',... + 'axis(''ij''),',... + 'shading(''flat''),',... + 'view(-20,75);']); +b4=uicontrol('parent',h0,... + 'units','points',... + 'tag','b4',... + 'style','pushbutton',... + 'string','关闭',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[80 50 80 30],... + 'callback','close'); diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21379.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21379.m" index 800c0c5aaec64ac552fa66db512816612ec5f052..b05002b17f359696efa056f91fda27ca6ae0a52a 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21379.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21379.m" @@ -1,3 +1,72 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4dc0b73796c74a3abd932fa0476adaf1047fb3e6f93d0c6ddd1af024d1218d1d -size 2006 +h0=figure('toolbar','none',... + 'position',[198 56 350 468],... + 'name','实例79'); +h1=axes('parent',h0,... + 'position',[0.25 0.45 0.5 0.5],... + 'visible','off'); +load imdemos bacteria +imshow(bacteria) +k1=~(bacteria>100); +k2=filter2(fspecial('laplacian'),bacteria); +k3=(k2>-4)&k1; +k4=erode(k1)&(k3==0); +[r,c]=find(k4); +k5=bwselect(k1,c,r); +b1=uicontrol('parent',h0,... + 'units','points',... + 'tag','b1',... + 'style','pushbutton',... + 'string','二值分割图',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[30 110 50 20],... + 'callback',[... + 'cla,',... + 'imshow(k1)']); +b2=uicontrol('parent',h0,... + 'units','points',... + 'tag','b2',... + 'style','pushbutton',... + 'string','滤波结果图',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[100 110 50 20],... + 'callback',[... + 'cla,',... + 'imshow(k2)']); +b3=uicontrol('parent',h0,... + 'units','points',... + 'tag','b3',... + 'style','pushbutton',... + 'string','阈值化图',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[170 110 50 20],... + 'callback',[... + 'cla,',... + 'imshow(k3)']); +b4=uicontrol('parent',h0,... + 'units','points',... + 'tag','b4',... + 'style','pushbutton',... + 'string','目标的核',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[30 60 50 20],... + 'callback',[... + 'cla,',... + 'imshow(k4)']); +b5=uicontrol('parent',h0,... + 'units','points',... + 'tag','b5',... + 'style','pushbutton',... + 'string','目标分割图',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[100 60 50 20],... + 'callback',[... + 'cla,',... + 'imshow(k5)']); +b6=uicontrol('parent',h0,... + 'units','points',... + 'tag','b6',... + 'style','pushbutton',... + 'string','关闭',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[170 60 50 20],... + 'callback','close'); \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21380.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21380.m" index 7fbc06c59992b165617e5fa015996daf297aa78c..e5612c34dc1fac79aac8bbb2530e02150740f721 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21380.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21380.m" @@ -1,3 +1,40 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:35034494d06169c6c950f0119b463783f5736fc139f708d81e85fbaa5692acda -size 1131 +h0=figure('toolbar','none',... + 'position',[198 56 350 450],... + 'name','实例80'); +h1=axes('parent',h0,... + 'position',[0.25 0.45 0.6 0.5],... + 'visible','off'); + +I=imread('flowers.tif'); +imshow(I) +b1=uicontrol('parent',h0,... + 'units','points',... + 'tag','b1',... + 'style','pushbutton',... + 'string','转换',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[50 80 60 25],... + 'callback',[... + 'handlek=waitbar(0,''initializing......'');,',... + 'pause(0.5),',... + 'i=1;,',... + 'while i<=100,',... + 'waitbar(i/100,handlek,[num2str(i),''%finished''],handlek),',... + 'i=i+1;,',... + 'pause(0.05),',... + 'end,',... + 'pause(1.5),',... + 'cla,',... + 'delete(handlek),',... + 'Y=rgb2ntsc(I);,',... + 'J=Y(:,:,1);,',... + 'imshow(J)']); +b2=uicontrol('parent',h0,... + 'units','points',... + 'tag','b2',... + 'style','pushbutton',... + 'string','关闭',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[150 80 60 25],... + 'callback','close'); + diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21381.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21381.m" index 265c2c08586dcb1fbe77bfa80440ec129d0540d5..be7c63d9df9878477834c9e7a81c3aa4af47bdc4 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21381.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21381.m" @@ -1,3 +1,71 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3a14cdc7b21214719384eccf4049ac68d90405b39054210c79fe30c7a63b9561 -size 2211 +load mri +D = squeeze(D); +h0=figure('toolbar','none',... + 'position',[198 56 450 468],... + 'name','实例81'); +h1=axes('parent',h0,... + 'position',[0.3 0.45 0.5 0.5],... + 'visible','off'); +image_num = 8; +image(D(:,:,image_num)) +axis image +colormap(map) +x = xlim; +y = ylim; +b1=uicontrol('parent',h0,... + 'units','points',... + 'tag','b1',... + 'style','pushbutton',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[50 100 60 20],... + 'string','二维图',... + 'callback',[... + 'cla,',... + 'contourslice(D,[],[],image_num),',... + 'axis ij,',... + 'xlim(x),',... + 'ylim(y),',... + 'daspect([1,1,1]),',... + 'colormap(''default'')']); +b2=uicontrol('parent',h0,... + 'units','points',... + 'tag','b2',... + 'style','pushbutton',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[250 100 60 20],... + 'string','三维图',... + 'callback',[... + 'cla,',... + 'phandles = contourslice(D,[],[],[1,12,19,27],8);,',... + 'view(3);,',... + 'axis tight,',... + 'set(phandles,''LineWidth'',2)']); +b3=uicontrol('parent',h0,... + 'units','points',... + 'tag','b3',... + 'style','pushbutton',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[50 50 60 20],... + 'string','立体图',... + 'callback',[... + 'cla,',... + 'Ds = smooth3(D);,',... + 'hiso = patch(isosurface(Ds,5),''FaceColor'',[1,.75,.65],''EdgeColor'',''none'');,',... + 'hcap = patch(isocaps(D,5),''FaceColor'',''interp'',''EdgeColor'',''none'');,',... + 'colormap(map),',... + 'view(45,30),',... + 'axis tight,',... + 'daspect([1,1,.4]),',... + 'lightangle(45,30),',... + 'lighting phong,',... + 'isonormals(Ds,hiso),',... + 'set(hcap,''AmbientStrength'',.6),',... + 'set(hiso,''SpecularColorReflectance'',0,''SpecularExponent'',50)']); +b4=uicontrol('parent',h0,... + 'units','points',... + 'tag','b4',... + 'style','pushbutton',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[250 50 60 20],... + 'string','关闭',... + 'callback','close'); diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21382.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21382.m" index 1eb944424fa63ec328ce40b2010c85ea64e8b957..d177622d67165f04a28cf19ce4ac6e9451abc7b7 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21382.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21382.m" @@ -1,3 +1,46 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0678f6ca33b44922e4d0b97135c14aaeeb50e205f52a9e565fc73910a118c5c1 -size 1228 +h0=figure('toolbar','none',... + 'position',[198 56 350 468],... + 'name','实例82'); +h1=axes('parent',h0,... + 'position',[0.2 0.45 0.5 0.5],... + 'visible','off'); +load earth +clims = [10 60]; +b1=uicontrol('parent',h0,... + 'units','points',... + 'tag','b1',... + 'style','pushbutton',... + 'string','强度图像',... + 'position',[30 120 50 20],... + 'callback',[... + 'cla,',... + 'imagesc(X,clims),',... + 'colormap(gray)']); +b2=uicontrol('parent',h0,... + 'units','points',... + 'tag','b2',... + 'style','pushbutton',... + 'string','索引图像',... + 'position',[100 120 50 20],... + 'callback',[... + 'cla,',... + 'image(X),',... + 'colormap(map),',... + 'axis image']); +b3=uicontrol('parent',h0,... + 'units','points',... + 'tag','b3',... + 'style','pushbutton',... + 'string','真彩图像',... + 'position',[170 120 50 20],... + 'callback',[... + 'cla,',... + 'image(X),',... + 'axis image']); +b4=uicontrol('parent',h0,... + 'units','points',... + 'tag','b4',... + 'style','pushbutton',... + 'string','关闭',... + 'position',[100 50 50 20],... + 'callback','close'); diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21383.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21383.m" index 95e1c572c7f47a0938b6e6270f2a7776b6ffc34e..bd5bbe28a6c7212d0dc53bb52b4e47048a6ecb31 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21383.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21383.m" @@ -1,3 +1,74 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:723b0a7c1078386edb41ef2756a38a30360e2580a255343cbe4a3b62aba6e290 -size 2147 +h0=figure('toolbar','none',... + 'position',[198 56 350 468],... + 'name','实例83'); +h1=axes('parent',h0,... + 'position',[0.25 0.45 0.5 0.5],... + 'visible','off'); +b1=uicontrol('parent',h0,... + 'units','points',... + 'tag','b1',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'style','pushbutton',... + 'string','颜色条',... + 'position',[30 120 50 20],... + 'callback',[... + 'cla,',... + 'I = imread(''plane.jpg'');,',... + 'imshow(I),',... + 'colorbar']); +b2=uicontrol('parent',h0,... + 'units','points',... + 'tag','b2',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'style','pushbutton',... + 'position',[100 120 50 20],... + 'string','单帧显示',... + 'callback',[... + 'cla,',... + 'load mri,',... + 'imshow(D(:,:,:,7))']); +b3=uicontrol('parent',h0,... + 'units','points',... + 'tag','b3',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'style','pushbutton',... + 'string','动画显示',... + 'position',[30 60 50 20],... + 'callback',[... + 'cla,',... + 'load mri,',... + 'montage(D,map),',... + 'mov=immovie(D,map);,',... + 'colormap(map),',... + 'movie(mov)']); +b4=uicontrol('parent',h0,... + 'units','points',... + 'tag','b4',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'style','pushbutton',... + 'string','纹理映射',... + 'position',[170 60 50 20],... + 'callback',[... + 'cla,',... + '[x,y,z] = cylinder;,',... + 'I = imread(''girls.jpg'');,',... + 'warp(x,z,y,I);']); +b5=uicontrol('parent',h0,... + 'units','points',... + 'tag','b5',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'style','pushbutton',... + 'string','关闭',... + 'position',[100 60 50 20],... + 'callback','close'); +b6=uicontrol('parent',h0,... + 'units','points',... + 'tag','b6',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'style','pushbutton',... + 'string','多帧显示',... + 'position',[170 120 50 20],... + 'callback',[... + 'cla,',... + 'load mri,',... + 'montage(D,map)']); \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21384.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21384.m" index c81425139e9c1ef075d8c53bb1cd19cc2f2638ba..c304a467f33fee3ad1545ca3aaf28654d69d0369 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21384.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21384.m" @@ -1,3 +1,56 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a499005a18e320bf5422474a7f8538a62617f13708852bf17c63f34511746064 -size 1680 +h0=figure('toolbar','none',... + 'position',[198 56 400 468],... + 'name','实例84'); +h1=axes('parent',h0,... + 'position',[0.25 0.45 0.5 0.5],... + 'visible','off'); +I=imread('plane.jpg','jpg'); +imshow(I) +b1=uicontrol('parent',h0,... + 'units','points',... + 'tag','b1',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'style','pushbutton',... + 'string','图像旋转',... + 'position',[200 120 50 20],... + 'callback',[... + 'cla,',... + 'k=str2num(get(e1,''string''));,',... + 'I=imread(''plane.jpg'',''jpg'');,',... + 'J=imrotate(I,k,''bilinear'');,',... + 'imshow(J)']); +b2=uicontrol('parent',h0,... + 'units','points',... + 'tag','b2',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'style','pushbutton',... + 'string','图像剪切',... + 'position',[200 80 50 20],... + 'callback',[... + 'cla,',... + 'imshow plane.jpg,',... + 'I=imcrop;,',... + 'imshow(I)']); + b3=uicontrol('parent',h0,... + 'units','points',... + 'tag','b3',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'style','pushbutton',... + 'string','关闭',... + 'position',[120 30 50 20],... + 'callback','close'); +e1=uicontrol('parent',h0,... + 'units','points',... + 'tag','e1',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'style','edit',... + 'horizontalalignment','right',... + 'position',[50 80 100 20]); +t1=uicontrol('parent',h0,... + 'units','points',... + 'tag','t1',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'style','text',... + 'string','请输入旋转角度(0~90)度',... + 'fontsize',12,... + 'position',[40 100 130 20]); \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21385.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21385.m" index 87dd928331d1b5d06252929734cb8dfbf08b5ac0..86347a4822b1ba1c199d16060644994b6cfd6530 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21385.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21385.m" @@ -1,3 +1,86 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:88b998a880af67ad8e1d26fbe4b3bc684930cc327646e31d41a9e2fafa4a054a -size 2549 +h0=figure('toolbar','none',... + 'position',[200 50 350 450],... + 'name','实例85'); +h1=axes('parent',h0,... + 'position',[0.10 0.45 0.8 0.5],... + 'visible','off'); +x=0:0.2:2*pi; +y=sin(x); +plot(x,y) +b1=uicontrol('parent',h0,... + 'units','points',... + 'tag','b1',... + 'style','pushbutton',... + 'string','拉格朗日插值',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[20 60 70 20],... + 'callback',[... + 'cla,',... + 'strn=get(e1,''string'');,',... + 'n=str2num(strn);,',... + 'i=1;,',... + 'x=0:0.2:2*pi;,',... + 'for t=0:0.2:2*pi,',... + 'y(i)=sin(t);,',... + 'L(i)=lag(t,n);,',... + 'i=i+1;,',... + 'end,',... + 'plot(x,y,''b*'',x,L,''r-''),',... + 'legend(''sin(x)'',''插值函数'');,',... + 'axis([0 7 -1.5 1.5])']); +b2=uicontrol('parent',h0,... + 'units','points',... + 'tag','b2',... + 'style','pushbutton',... + 'string','误差比较',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[170 60 70 20],... + 'callback',[... + 'strn=get(e1,''string'');,',... + 'n=str2num(strn);,',... + 'strm=get(e2,''string'');,',... + 'm=str2num(strm);,',... + 'dd=abs(sin(m)-lag(m,n));,',... + 'msgbox([''误差为:'',num2str(dd)],''计算结果'')']); +e1=uicontrol('parent',h0,... + 'units','points',... + 'tag','e1',... + 'style','edit',... + 'fontsize',12,... + 'string','5',... + 'horizontalalignment','right',... + 'backgroundcolor',[1 1 1],... + 'position',[50 100 40 20]); +e2=uicontrol('parent',h0,... + 'units','points',... + 'tag','e2',... + 'style','edit',... + 'fontsize',12,... + 'string','1.20',... + 'horizontalalignment','right',... + 'backgroundcolor',[1 1 1],... + 'position',[200 100 40 20]); +t1=uicontrol('parent',h0,... + 'units','points',... + 'tag','t1',... + 'style','text',... + 'string','阶数:',... + 'fontsize',12,... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[20 100 30 20]); +t2=uicontrol('parent',h0,... + 'units','points',... + 'tag','t2',... + 'style','text',... + 'string','误差点:',... + 'fontsize',12,... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[160 100 40 20]); +b3=uicontrol('parent',h0,... + 'units','points',... + 'tag','b3',... + 'style','pushbutton',... + 'string','关闭',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[100 20 60 20],... + 'callback','close'); \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21388.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21388.m" index a4e328ff383ef6b4c9d2628d9349e3ebfb08d7a9..f9b63baae98111b536c5d831e04dcf5856131c39 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21388.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21388.m" @@ -1,3 +1,105 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a1c03625b35f6b51f8cb40b7593c030d380bb6d38d25030e8a702dec2f50652d -size 3165 +h0=figure('toolbar','none',... + 'position',[200 50 350 450],... + 'name','实例88'); +h1=axes('parent',h0,... + 'position',[0.10 0.45 0.8 0.5],... + 'visible','off'); +x=0:0.2:2*pi; +y=sin(x); +plot(x,y) +b1=uicontrol('parent',h0,... + 'units','points',... + 'tag','b1',... + 'style','pushbutton',... + 'string','Hermite插值',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[20 60 70 20],... + 'callback',[... + 'strn1=get(e2,''string'');,',... + 'n1=str2num(strn1);,',... + 'strn2=get(e3,''string'');,',... + 'n2=str2num(strn2);,',... + 'x=0:0.2:2*pi;,',... + 'i=1;,',... + 'for t=0:0.2:2*pi,',... + 'y(i)=sin(t);,',... + 'ynt(i)=hermite(t,n1,n2);,',... + 'i=i+1;,',... + 'end,',... + 'plot(x,y,''b*'',x,ynt,''r-''),',... + 'axis([0 7 -1.5 1.5]),',... + 'legend(''sin(x)'',''Hermite插值'')']); +b2=uicontrol('parent',h0,... + 'units','points',... + 'tag','b2',... + 'style','pushbutton',... + 'string','误差比较',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[170 60 70 20],... + 'callback',[... + 'strn1=get(e2,''string'');,',... + 'n1=str2num(strn1);,',... + 'strn2=get(e3,''string'');,',... + 'n2=str2num(strn2);,',... + 'dn=str2num(strdn);,',... + 'dd=abs(sin(dn)-hermite(dn,n1,n2));,',... + 'msgbox([''误差为:'',num2str(dd)],''计算结果'')']); +e1=uicontrol('parent',h0,... + 'units','points',... + 'tag','e1',... + 'style','edit',... + 'fontsize',12,... + 'string','1.20',... + 'horizontalalignment','right',... + 'backgroundcolor',[1 1 1],... + 'position',[200 100 40 20]); +t1=uicontrol('parent',h0,... + 'units','points',... + 'tag','t1',... + 'style','text',... + 'string','误差点:',... + 'fontsize',12,... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[160 100 40 20]); +e2=uicontrol('parent',h0,... + 'units','points',... + 'tag','e2',... + 'style','edit',... + 'fontsize',12,... + 'string','1.00',... + 'horizontalalignment','right',... + 'backgroundcolor',[1 1 1],... + 'position',[20 85 40 20]); +t2=uicontrol('parent',h0,... + 'units','points',... + 'tag','t2',... + 'style','text',... + 'string','第一节点:',... + 'fontsize',12,... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[15 105 50 20]); +e3=uicontrol('parent',h0,... + 'units','points',... + 'tag','e3',... + 'style','edit',... + 'fontsize',12,... + 'string','3.00',... + 'horizontalalignment','right',... + 'backgroundcolor',[1 1 1],... + 'position',[100 85 40 20]); +t3=uicontrol('parent',h0,... + 'units','points',... + 'tag','t3',... + 'style','text',... + 'string','第二节点:',... + 'fontsize',12,... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[95 105 50 20]); +b3=uicontrol('parent',h0,... + 'units','points',... + 'tag','b3',... + 'style','pushbutton',... + 'string','关闭',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[100 20 60 20],... + 'callback','close'); \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21390.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21390.m" index 15aaefff5963b527dc17b4381bca480f99a081d1..2c4347dea88f7f2f6d029c5af76a85aad1e16560 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21390.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/MATLAB\347\232\20490\344\270\252\345\256\236\344\276\213/matlab\347\232\20490\344\270\252\345\256\236\344\276\213/\345\256\236\344\276\21390.m" @@ -1,3 +1,58 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4bcc09b8931af78b2272eacf857e5430701d335d56de86631410f758861170dd -size 1771 +h0=figure('toolbar','none',... + 'position',[200 150 450 250]); +h1=axes('parent',h0,... + 'position',[0.05 0.15 0.65 0.6],... + 'visible','off'); +I=imread('abmatrix.bmp','bmp'); +image(I) +axis off +huidiao=[... + 'a=[1 0 3 0;0 2 1 2;3 1 15 0;0 2 0 4;];,',... + 'b=[1 6 5 8]'';,',... + 'r=[a,b];,',... + 'n=4;,',... + 'tic,',... + 'x=ch(a,b,n);,',... + 'time1=toc;,',... + 'T=num2str(time1);,',... + 'set(e1,''string'',[T,''秒'']);,',... + 'msgbox([''X=['',num2str(x(1)),num2str(x(2)),num2str(x(3)),num2str(x(4)),'']''],''方程组的解'');']; +t1=uicontrol('parent',h0,... + 'units','points',... + 'tag','t1',... + 'style','text',... + 'string','方程组如下:',... + 'fontsize',15,... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[20 150 100 20]); +e1=uicontrol('parent',h0,... + 'units','points',... + 'tag','e1',... + 'style','edit',... + 'horizontalalignment','right',... + 'backgroundcolor',[1 1 1],... + 'position',[290 100 30 20]); +t2=uicontrol('parent',h0,... + 'units','points',... + 'tag','t2',... + 'style','text',... + 'string','计算时间:',... + 'fontsize',15,... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[250 125 80 20]); +b1=uicontrol('parent',h0,... + 'units','points',... + 'tag','b1',... + 'style','pushbutton',... + 'string','平方根法',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[250 60 60 20],... + 'callback',huidiao); +b2=uicontrol('parent',h0,... + 'units','points',... + 'tag','b2',... + 'string','关闭',... + 'style','pushbutton',... + 'backgroundcolor',[0.75 0.75 0.75],... + 'position',[250 30 60 20],... + 'callback','close'); \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/Binary_Search.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/Binary_Search.m" index c8b7b36d3839985bf926c64a0c6b84b573a9e1a8..88a06713d225e8ad2415e4b10e8b00b644201017 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/Binary_Search.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/Binary_Search.m" @@ -1,3 +1,11 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4aad050656e98af5ef9b660fdc5b525e388d094d431c947ae7e5c0437d75613a -size 404 +function Binary_Search(L,a,b,x)%c语言 +begin + if a>b then return(-1) + else begin + m:=(a+b) div 2; + if x=L[m] then return(m) + else if x>L[m] + then return(Binary_Search(L,m+1,b,x)); + else return(Binary_Search(L,a,m-1,x)); + end; +end; \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/Dijkstra/MINROUTE.M" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/Dijkstra/MINROUTE.M" index 3f54d368475e0e7eeee231b5b3cdead4c0010876..96ca46ffb10f540d7667d83c761ac899047112f3 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/Dijkstra/MINROUTE.M" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/Dijkstra/MINROUTE.M" @@ -1,3 +1,34 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:bc383609b78e5ef633e5819d5e9ebe7651c3ff3be039ad84b6822ea5e74a3aaa -size 1259 +function [S,D]=minRoute(i,m,W) +%图与网络论中求最短路径的Dijkstra算法 M-函数 +%格式 [S,D]=minroute(i,m,W) +% i为最短路径的起始点,m为图顶点数,W为图的带权邻接矩阵, +% 不构成边的两顶点之间的权用inf表示。显示结果为:S的每 +% 一列从上到下记录了从始点到终点的最短路径所经顶点的序号; +% D是一行向量,记录了S中所示路径的大小; +%例如 +% clear;w=inf*ones(6);w(1,3)=10;w(1,5)=30; +% w(1,6)=100;w(2,3)=5;w(3,4)=50;w(4,6)=10; +% w(5,4)=20;w(5,6)=60; +% i=1;[s,d]=minroute(i,6,w) + +% By X.D. Ding June 2000 + +dd=[];tt=[];ss=[];ss(1,1)=i;V=1:m;V(i)=[];dd=[0;i]; +% dd的第二行是每次求出的最短路径的终点,第一行是最短路径的值 +kk=2;[mdd,ndd]=size(dd); +while ~isempty(V) + [tmpd,j]=min(W(i,V));tmpj=V(j); + for k=2:ndd + [tmp1,jj]=min(dd(1,k)+W(dd(2,k),V)); + tmp2=V(jj);tt(k-1,:)=[tmp1,tmp2,jj]; + end + tmp=[tmpd,tmpj,j;tt];[tmp3,tmp4]=min(tmp(:,1)); + if tmp3==tmpd, ss(1:2,kk)=[i;tmp(tmp4,2)]; + else,tmp5=find(ss(:,tmp4)~=0);tmp6=length(tmp5); + if dd(2,tmp4)==ss(tmp6,tmp4) + ss(1:tmp6+1,kk)=[ss(tmp5,tmp4);tmp(tmp4,2)]; + else, ss(1:3,kk)=[i;dd(2,tmp4);tmp(tmp4,2)]; + end;end + dd=[dd,[tmp3;tmp(tmp4,2)]];V(tmp(tmp4,3))=[]; + [mdd,ndd]=size(dd);kk=kk+1; +end; S=ss; D=dd(1,:); diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/Dynamic_pro/DYNPROG.M" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/Dynamic_pro/DYNPROG.M" index 347fc38ac36887338347a83bd762d4924207d805..63d161dbe577b617709588c9c16ce6563e0f79cf 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/Dynamic_pro/DYNPROG.M" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/Dynamic_pro/DYNPROG.M" @@ -1,3 +1,86 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ab9ef86cd6f10ff0289bf031250390694cfe9dbe36752b49d1019cf44f7df6b0 -size 3151 +function [p_opt,fval]=dynprog(x,DecisFun,ObjFun,TransFun) +% [p_opt,fval]=dynprog(x,DecisFun,ObjFun,TransFun) +% 自由始端和终端的动态规划,求指标函数最小值的逆序算法递归 +% 计算程序。x是状态变量,一列代表一个阶段状态;M-函数 +% DecisFun(k,x)由阶段k的状态变量x求出相应的允许决策变量; +% M-函数ObjFun(k,x,u)是阶段指标函数,M-函数TransFun(k,x,u) +% 是状态转移函数,其中x是阶段k的某状态变量,u是相应的决策变量; +% 输出p_opt由4列构成,p_opt=[序号组;最优策略组;最优轨线组; +% 指标函数值组];fval是一个列向量,各元素分别表示p_opt各 +% 最优策略组对应始端状态x的最优函数值; +% +%例(参看胡良剑等编《数学实验--使用MATLAB》P180 +%先写3个函数 +% eg13f1_2.m +% function u=DecisF_1(k,x) +% 在阶段k由状态变量x的值求出其相应的决策变量所有的取值 +% c=[70,72,80,76];q=10*[6,7,12,6]; +% if q(k)-x<0,u=0:100; %决策变量不能取为负值 +% else,u=q(k)-x:100;end; %产量满足需求且不超过100 +% u=u(:); +% eg13f2_2.m +% function v=ObjF_1(k,x,u) +% 阶段k的指标函数 +% c=[70,72,80,76];v=c(k)*u+2*x; +% eg13f3_2.m +% function y=TransF_1(k,x,u) +% 状态转移方程 +% q=10*[6,7,12,6];y=x+u-q(k); +%调用DynProg.m计算如下: +% clear;x=nan*ones(14,4);% x是10的倍数,最大范围0≤x≤130, +% %因此x=0,1,...13,所以x初始化取14行,nan表示无意义元素 +% x(1:7,1)=10*(0:6)'; % 按月定义x的可能取值 +% x(1:11,2)=10*(0:10)';x(1:12,3)=10*(2:13)'; +% x(1:7,4)=10*(0:6)'; +% [p,f]=dynprog(x,'eg13f1_2','eg13f2_2','eg13f3_2') + +% By X.D. Ding June 2000 + +k=length(x(1,:));f_opt=nan*ones(size(x));d_opt=f_opt; +t_vubm=inf*ones(size(x));x_isnan=~isnan(x);t_vub=inf; +% 计算终端相关值 +tmp1=find(x_isnan(:,k));tmp2=length(tmp1); +for i=1:tmp2 + u=feval(DecisFun,k,x(i,k));tmp3=length(u); + for j=1:tmp3 + tmp=feval(ObjFun,k,x(tmp1(i),k),u(j)); + if tmp<=t_vub, + f_opt(i,k)=tmp;d_opt(i,k)=u(j);t_vub=tmp; +end;end;end +% 逆推计算各阶段的递归调用程序 +for ii=k-1:-1:1 + tmp10=find(x_isnan(:,ii));tmp20=length(tmp10); + for i=1:tmp20 + u=feval(DecisFun,ii,x(i,ii));tmp30=length(u); + for j=1:tmp30 + tmp00=feval(ObjFun,ii,x(tmp10(i),ii),u(j)); + tmp40=feval(TransFun,ii,x(tmp10(i),ii),u(j)); + tmp50=x(:,ii+1)-tmp40; + tmp60=find(tmp50==0); + if ~isempty(tmp60), + tmp00=tmp00+f_opt(tmp60(1),ii+1); + if tmp00<=t_vubm(i,ii) + f_opt(i,ii)=tmp00;d_opt(i,ii)=u(j); + t_vubm(i,ii)=tmp00; +end;end;end;end;end; +fval=f_opt(tmp1,1); +% 记录最优决策、最优轨线和相应指标函数值 +p_opt=[];tmpx=[];tmpd=[];tmpf=[]; +tmp0=find(x_isnan(:,1));tmp01=length(tmp0); +for i=1:tmp01, + tmpd(i)=d_opt(tmp0(i),1); + tmpx(i)=x(tmp0(i),1); + tmpf(i)=feval(ObjFun,1,tmpx(i),tmpd(i)); + p_opt(k*(i-1)+1,[1,2,3,4])=[1,tmpx(i),... +tmpd(i),tmpf(i)]; + for ii=2:k + tmpx(i)=feval(TransFun,ii-1,tmpx(i),tmpd(i)); + tmp1=x(:,ii)-tmpx(i);tmp2=find(tmp1==0); + if ~isempty(tmp2) + tmpd(i)=d_opt(tmp2(1),ii); + end; + tmpf(i)=feval(ObjFun,ii,tmpx(i),tmpd(i)); + p_opt(k*(i-1)+ii,[1,2,3,4])=[ii,tmpx(i),... +tmpd(i),tmpf(i)]; +end;end; + diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/Floyd/floyd.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/Floyd/floyd.m" index 7e37d413b66b23da5faf77353510089c865cc357..d2a2f340b6065beb2f803cf455087ce5d43049de 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/Floyd/floyd.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/Floyd/floyd.m" @@ -1,3 +1,27 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3939d7eee97b57205ce5648e3652bfd72cf5f6be2c6ac9d37b9855edb309c21a -size 563 + function [d,r]=floyd(a) + %floyd.m + %采用floyd算法计算图a中每对顶点最短路 + %d是矩离矩阵 + %r是路由矩阵 + n=size(a,1); + d=a; + for i=1:n + for j=1:n + r(i,j)=j; + end + end + r + for k=1:n + for i=1:n + for j=1:n + if d(i,k)+d(k,j)1)),error('p should be between 0 and 1'); end; +if abs(sum(p)-1)>1e-3,error('sum of p should be 1'); end; + +r=zeros(m,n);lx=max(mx,nx); +s=rand(m,n); +cp=cumsum(p); +k=find(s=cp(lx-1));r(k)=x(lx); +for i=2:(lx-1), + k=find((s>=cp(i-1))&(s0) + temp1=max(E(1,2),E(1,1));temp2=min(E(1,2),E(1,1)); + for i=1:k; + if (E(i,1)==temp1), E(i,1)=temp2; end; +if (E(i,2)==temp1), E(i,2)=temp2; end; + end; + a=find(E(:,1)-E(:,2));E=E(a,:); + if (rank(E)>0),P=[P;E(1,:)];k=length(E(:,1)); end; +end; +Wt=sum(P(:,3));Pp=[e(P(:,4),:),P(:,3:4)]; +for i=1:length(P(:,3)); %显示顶点vi与边ej +disp([' ','e',num2str(P(i,4)),' ','(v',... +num2str(P(i,1)),' ','v',num2str(P(i,2)),')']); +end; +% 以下是画图程序 +axis equal; hold on +[x,y]=cylinder(1,n);xm=min(x(1,:)); ym=min(y(1,:)); +xx=max(x(1,:)); yy=max(y(1,:)); +axis([xm-abs(xm)*0.15,xx+abs(xx)*0.15,ym-abs(ym)*0.15, yy+abs(yy)*0.15]); plot(x(1,:),y(1,:),'ko') +for i=1:n; temp=[' v',int2str(i)]; + text(x(1,i),y(1,i),temp); end; +for i=1:nE; plot(x(1,e(i,:)),y(1,e(i,:)),'b'); end; +for i=1:length(P(:,4)); + plot(x(1,Pp(i,1:2)),y(1,Pp(i,1:2)),'r'); end; +text(-0.35,-1.2,['最小生成树的权为',' ',num2str(Wt)]); +title('红色连线为最小生成树'); axis('off');hold off + diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/CandM/mrank.c" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/CandM/mrank.c" index 8cc08c15202bef52b9dea7c012f3322fd4e1759d..33efe7c642e9452bf44bb01f1f70e680b0c4688d 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/CandM/mrank.c" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/CandM/mrank.c" @@ -1,3 +1,133 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2d0c68d11ca35b9aa13ca6e9ff7726916c5c66c8b4ab097f8f30f1a2ed2e1abf -size 4270 +/* + * MATLAB Compiler: 3.0 + * Date: Sat Sep 04 22:31:38 2004 + * Arguments: "-B" "macro_default" "-O" "all" "-O" "fold_scalar_mxarrays:on" + * "-O" "fold_non_scalar_mxarrays:on" "-O" "optimize_integer_for_loops:on" "-O" + * "array_indexing:on" "-O" "optimize_conditionals:on" "-t" "-W" "lib:Pkg" "-T" + * "link:exe" "-h" "mrank" "mrankp.c" "libmmfile.mlib" + */ +#include "mrank.h" +#include "libmatlbm.h" +#include "libmmfile.h" +static mxArray * _mxarray0_; +static mxArray * _mxarray1_; + +void InitializeModule_mrank(void) { + _mxarray0_ = mclInitializeDouble(1.0); + _mxarray1_ = mclInitializeDoubleVector(0, 0, (double *)NULL); +} + +void TerminateModule_mrank(void) { + mxDestroyArray(_mxarray1_); + mxDestroyArray(_mxarray0_); +} + +static mxArray * Mmrank(int nargout_, mxArray * n); + +_mexLocalFunctionTable _local_function_table_mrank + = { 0, (mexFunctionTableEntry *)NULL }; + +/* + * The function "mlfMrank" contains the normal interface for the "mrank" + * M-function from file "d:\work\candm\mrank.m" (lines 1-6). This function + * processes any input arguments and passes them to the implementation version + * of the function, appearing above. + */ +mxArray * mlfMrank(mxArray * n) { + int nargout = 1; + mxArray * r = NULL; + mlfEnterNewContext(0, 1, n); + r = Mmrank(nargout, n); + mlfRestorePreviousContext(0, 1, n); + return mlfReturnValue(r); +} + +/* + * The function "mlxMrank" contains the feval interface for the "mrank" + * M-function from file "d:\work\candm\mrank.m" (lines 1-6). The feval function + * calls the implementation version of mrank through this function. This + * function processes any input arguments and passes them to the implementation + * version of the function, appearing above. + */ +void mlxMrank(int nlhs, mxArray * plhs[], int nrhs, mxArray * prhs[]) { + mxArray * mprhs[1]; + mxArray * mplhs[1]; + int i; + if (nlhs > 1) { + mlfError( + mxCreateString( + "Run-time Error: File: mrank Line: 1 Column: 1 The function \"mrank" + "\" was called with more than the declared number of outputs (1)."), + NULL); + } + if (nrhs > 1) { + mlfError( + mxCreateString( + "Run-time Error: File: mrank Line: 1 Column: 1 The function \"mrank" + "\" was called with more than the declared number of inputs (1)."), + NULL); + } + for (i = 0; i < 1; ++i) { + mplhs[i] = NULL; + } + for (i = 0; i < 1 && i < nrhs; ++i) { + mprhs[i] = prhs[i]; + } + for (; i < 1; ++i) { + mprhs[i] = NULL; + } + mlfEnterNewContext(0, 1, mprhs[0]); + mplhs[0] = Mmrank(nlhs, mprhs[0]); + mlfRestorePreviousContext(0, 1, mprhs[0]); + plhs[0] = mplhs[0]; +} + +/* + * The function "Mmrank" is the implementation version of the "mrank" + * M-function from file "d:\work\candm\mrank.m" (lines 1-6). It contains the + * actual compiled code for that M-function. It is a static function and must + * only be called from one of the interface functions, appearing below. + */ +/* + * function r=mrank(n) + */ +static mxArray * Mmrank(int nargout_, mxArray * n) { + mexLocalFunctionTable save_local_function_table_ + = mclSetCurrentLocalFunctionTable(&_local_function_table_mrank); + mxArray * r = NULL; + mxArray * k = NULL; + mclCopyArray(&n); + /* + * r=zeros(n,1); + */ + mlfAssign(&r, mlfZeros(mclVa(n, "n"), _mxarray0_, NULL)); + /* + * for k=1:n + */ + { + int v_ = mclForIntStart(1); + int e_ = mclForIntEnd(mclVa(n, "n")); + if (v_ > e_) { + mlfAssign(&k, _mxarray1_); + } else { + /* + * r(k)=rank(magic(k)); + * end + */ + for (; ; ) { + mclIntArrayAssign1( + &r, mlfRank(mlfMagic(mlfScalar(v_)), NULL), v_); + if (v_ == e_) { + break; + } + ++v_; + } + mlfAssign(&k, mlfScalar(v_)); + } + } + mclValidateOutput(r, 1, nargout_, "r", "mrank"); + mxDestroyArray(k); + mxDestroyArray(n); + mclSetCurrentLocalFunctionTable(save_local_function_table_); + return r; +} diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/CandM/mrank.exe" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/CandM/mrank.exe" index aafb16b8aaa8f7efee6a4fd6cb771b4c09f89380..b74e35a5f76bdb91a00214be8ce058711211277b 100644 Binary files "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/CandM/mrank.exe" and "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/CandM/mrank.exe" differ diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/CandM/mrank.h" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/CandM/mrank.h" index cecbfc66c5bbcb9fa2d420ae5746514c71b83c41..282a481e8eeb4172bc87c1fdd0ae027114451d84 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/CandM/mrank.h" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/CandM/mrank.h" @@ -1,3 +1,34 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5d6343cab6cfc356e8317debfb58548a3e06e42190da0d4e004cff3653a09aca -size 833 +/* + * MATLAB Compiler: 3.0 + * Date: Sat Sep 04 22:31:38 2004 + * Arguments: "-B" "macro_default" "-O" "all" "-O" "fold_scalar_mxarrays:on" + * "-O" "fold_non_scalar_mxarrays:on" "-O" "optimize_integer_for_loops:on" "-O" + * "array_indexing:on" "-O" "optimize_conditionals:on" "-t" "-W" "lib:Pkg" "-T" + * "link:exe" "-h" "mrank" "mrankp.c" "libmmfile.mlib" + */ + +#ifndef MLF_V2 +#define MLF_V2 1 +#endif + +#ifndef __mrank_h +#define __mrank_h 1 + +#ifdef __cplusplus +extern "C" { +#endif + +#include "libmatlb.h" + +extern void InitializeModule_mrank(void); +extern void TerminateModule_mrank(void); +extern _mexLocalFunctionTable _local_function_table_mrank; + +extern mxArray * mlfMrank(mxArray * n); +extern void mlxMrank(int nlhs, mxArray * plhs[], int nrhs, mxArray * prhs[]); + +#ifdef __cplusplus +} +#endif + +#endif diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/CandM/mrank.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/CandM/mrank.m" index 0d782e4817769ab09dececaa420efe2ae9402634..fec79b7ef5b821e9c1dc34b005b8d6c83e6c5255 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/CandM/mrank.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/CandM/mrank.m" @@ -1,3 +1,5 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b9b4c8f0f8d32865faf703ce6c62bca1b31a39442183710a4a329b62a92f032d -size 78 +function r=mrank(n) +r=zeros(n,1); +for k=1:n + r(k)=rank(magic(k)); +end diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/CandM/mrankp.c" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/CandM/mrankp.c" index df547ce7250b0eab7f4025f89fd6cd5534deabbf..176898b1ec3aa3c556610c72d286dcd5360a305d 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/CandM/mrankp.c" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/CandM/mrankp.c" @@ -1,3 +1,24 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7450ba9236609c1348e7b49af68fcac8e9f07edc1c8ce9f6cb8ea7f5661b908b -size 347 +#include +#include +#include "matlab.h" +extern mxArray*mlfMrank(mxArray*); +main(int argc,char **argv) +{ +mxArray *N; +mxArray *R; +int n; +if(argc>=2){ +n=atoi(argv[1]); +}else { +n=12; +} +PkgInitialize(); +N=mlfScalar(n); +R=mlfMrank(N); +mlfPrintMatrix(R); +mxDestroyArray(N); +mxDestroyArray(R); +PkgTerminate(); + + +} diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/CandM/pkg.c" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/CandM/pkg.c" index 8ad523dfe0718f20e8613ccee8bbea7735341862..6cb72c90b9f311ce81217307ae76c926c7773a13 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/CandM/pkg.c" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/CandM/pkg.c" @@ -1,3 +1,54 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a2154c571a09fa9a33a364e6f9e091c56e513a876fc670d1ed014d5c2a03a1ae -size 1900 +/* + * MATLAB Compiler: 3.0 + * Date: Sat Sep 04 22:31:38 2004 + * Arguments: "-B" "macro_default" "-O" "all" "-O" "fold_scalar_mxarrays:on" + * "-O" "fold_non_scalar_mxarrays:on" "-O" "optimize_integer_for_loops:on" "-O" + * "array_indexing:on" "-O" "optimize_conditionals:on" "-t" "-W" "lib:Pkg" "-T" + * "link:exe" "-h" "mrank" "mrankp.c" "libmmfile.mlib" + */ + +#ifndef MLF_V2 +#define MLF_V2 1 +#endif + +#include "libmatlb.h" +#include "Pkg.h" +#include "mrank.h" +#include "libmmfile.h" + +extern _mex_information _lib_info; + +static mexFunctionTableEntry function_table[1] + = { { "mrank", mlxMrank, 1, 1, &_local_function_table_mrank } }; + +static _mexInitTermTableEntry init_term_table[2] + = { { libmmfileInitialize, libmmfileTerminate }, + { InitializeModule_mrank, TerminateModule_mrank } }; + +static int _reference_count = 0; + +_mex_information _lib_info + = { 1, 1, function_table, 0, NULL, 0, NULL, 2, init_term_table }; + +/* + * The function "PkgInitialize" is a Compiler-generated initialization wrapper. + * It is used to initialize the state of Compiler-generated functions so that + * those functions can be called from code not generated by the Compiler. The + * function(s) initialized can be found in the function_table variable, + * appearing above. + */ +void PkgInitialize(void) { + mclLibInit("Pkg", &_reference_count, &_lib_info); +} + +/* + * The function "PkgTerminate" is a Compiler-generated termination wrapper. It + * is used to clean up the state that was set up by the initialization wrapper + * function, also found in this file. Call this function after having called + * the initialization wrapper function and after having finished making all + * calls to the Compiler-generated function(s) found in the function_table + * variable, appearing above. + */ +void PkgTerminate(void) { + mclLibTerm("Pkg", &_reference_count, &_lib_info); +} diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/CandM/pkg.exports" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/CandM/pkg.exports" index 564eed679f469d6e31a29089884daac887cff248..28ccfb3440eb7f91dd7b5fed7106e1db4c26263a 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/CandM/pkg.exports" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/CandM/pkg.exports" @@ -1,3 +1,4 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:fff53ac75d45ed48acf4a7ffa34a311fd89eba82a5b4507c2424d5552091fb53 -size 49 +mlfMrank +mlxMrank +PkgInitialize +PkgTerminate diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/CandM/pkg.h" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/CandM/pkg.h" index 84fb18fda329a7a783b544f6c10d8f10dcf052bb..52524787f46f2e33f3010ddf4f3344ac5c07af0f 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/CandM/pkg.h" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/CandM/pkg.h" @@ -1,3 +1,34 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:21b9bfa9096219fb538da07b58c3bdba37f7420b4f238cb7267d61ecf47c530a -size 830 +/* + * MATLAB Compiler: 3.0 + * Date: Sat Sep 04 22:31:38 2004 + * Arguments: "-B" "macro_default" "-O" "all" "-O" "fold_scalar_mxarrays:on" + * "-O" "fold_non_scalar_mxarrays:on" "-O" "optimize_integer_for_loops:on" "-O" + * "array_indexing:on" "-O" "optimize_conditionals:on" "-t" "-W" "lib:Pkg" "-T" + * "link:exe" "-h" "mrank" "mrankp.c" "libmmfile.mlib" + */ + +#ifndef MLF_V2 +#define MLF_V2 1 +#endif + +#ifndef __pkg_h +#define __pkg_h 1 + +#ifdef __cplusplus +extern "C" { +#endif + +#include "libmatlb.h" + +extern void InitializeModule_pkg(void); +extern void TerminateModule_pkg(void); +extern mxArray * mlfMrank(mxArray * n); +extern void mlxMrank(int nlhs, mxArray * plhs[], int nrhs, mxArray * prhs[]); +extern void PkgInitialize(void); +extern void PkgTerminate(void); + +#ifdef __cplusplus +} +#endif + +#endif diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/CandM/pkg.mlib" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/CandM/pkg.mlib" index 71b25393a707bcdc47fb76f71a46e360d2de48de..cf676c15c299d65873efe20e3e6efbee77ccd1c1 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/CandM/pkg.mlib" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/CandM/pkg.mlib" @@ -1,3 +1,15 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:241eb767122a42a9e8bcd49bf3fac233dc38fa87b58ef4d9bb6fb8cd1cf17cd1 -size 430 +/* start of pkg.mlib */ + +target = "C"; +include = "pkg.h"; +timestamp = "Sat Sep 04 22:31:38 2004"; + +mrank { /* M function name */ + nin = 1; /* number of M inputs */ + nout = 1; /* number of M outputs */ + scope = global; /* where function defined */ + cname = mlfMrank; /* mxArray in and out */ + nargout = 0; /* nargout not used */ +} + +/* end of pkg.mlib */ diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/c_mat/matcreat.c" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/c_mat/matcreat.c" index 54cf6eeddae8ff5b4d6889c64a42963c4cad36c6..ab4e80639a9f84553082486f944ae78a1cfa4a4b 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/c_mat/matcreat.c" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/c_mat/matcreat.c" @@ -1,3 +1,33 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1af887de7bc60eeec4fc3d78c994a97eaea1f77136e4bd9223646c594fe1cc38 -size 904 +#include +#include +#include +#include "mat.h" +#define BUFSIZE 256 +int main() +{ + MATFile *pmat; + mxArray *pa1,*pa2,*pa3; + double data[9]={1.0,4.0,7.0,2.0,5.0,8.0,3.0,6.0,9.0}; + double data1[4]={1,2,3,4}; + const char *file="mattest.mat"; + char str[BUFSIZE]; + int status; + pmat=matOpen(file,"w"); + + pa1=mxCreateDoubleMatrix(3,3,mxREAL); + mxSetName(pa1,"LocalDouble"); + pa2=mxCreateDoubleMatrix(2,2,mxREAL); + mxSetName(pa2,"GlobalDouble"); + p3=mxCreateString("How to use mat files!"); + mxSetName(pa3,"LocalString"); + memcpy((void *)(mxGetPr(pa1)),(void *)data,sizeof(data)); + memcpy((void *)(mxGetPr(pa2)),(void *)data1,sizeof(data1)); + status=matPutArray(pmat,pa1); + status=matPutArrayAsGlobal(pmat,pa2); + status=matPutArray(pmat,pa3); + mxDestroyArray(pa1); + mxDestroyArray(pa2); + mxDestroyArray(pa3); + matClose(pmat); + return (EXIT_SUCCESS); +} \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/c_mat/matcreat.dsp" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/c_mat/matcreat.dsp" index f269d1f53825e5e552d49d67269f8450a64c9dd4..34ff0fc9e44364a297111e8e72b8ccd2a19b6cd6 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/c_mat/matcreat.dsp" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/c_mat/matcreat.dsp" @@ -1,3 +1,88 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:76133c8f4947783fca2c0a9e0a3d301b8232480744c1b05269f9922b43aad801 -size 3423 +# Microsoft Developer Studio Project File - Name="matcreat" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) Console Application" 0x0103 + +CFG=matcreat - Win32 Debug +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "matcreat.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "matcreat.mak" CFG="matcreat - Win32 Debug" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "matcreat - Win32 Release" (based on "Win32 (x86) Console Application") +!MESSAGE "matcreat - Win32 Debug" (based on "Win32 (x86) Console Application") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +RSC=rc.exe + +!IF "$(CFG)" == "matcreat - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "Release" +# PROP BASE Intermediate_Dir "Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "Release" +# PROP Intermediate_Dir "Release" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c +# ADD CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c +# ADD BASE RSC /l 0x804 /d "NDEBUG" +# ADD RSC /l 0x804 /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 + +!ELSEIF "$(CFG)" == "matcreat - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "Debug" +# PROP BASE Intermediate_Dir "Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "Debug" +# PROP Intermediate_Dir "Debug" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c +# ADD CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c +# ADD BASE RSC /l 0x804 /d "_DEBUG" +# ADD RSC /l 0x804 /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept + +!ENDIF + +# Begin Target + +# Name "matcreat - Win32 Release" +# Name "matcreat - Win32 Debug" +# Begin Source File + +SOURCE=.\matcreat.c +# End Source File +# End Target +# End Project diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/c_mat/matcreat.dsw" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/c_mat/matcreat.dsw" index 8f3c1113e8d0930b5ed452a690664d6c501ea68e..e8908ada938888eac7320ffffce48367fca52e79 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/c_mat/matcreat.dsw" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/c_mat/matcreat.dsw" @@ -1,3 +1,29 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:312c3953a882593bdf45915818b79049d600fc8b416d2213a68bc7f3c7133294 -size 539 +Microsoft Developer Studio Workspace File, Format Version 6.00 +# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! + +############################################################################### + +Project: "matcreat"=.\matcreat.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Global: + +Package=<5> +{{{ +}}} + +Package=<3> +{{{ +}}} + +############################################################################### + diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/c_mat/matcreat.ncb" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/c_mat/matcreat.ncb" index e00f44bbd4b4d0c56890c055921043a3d0cad61b..58c6df9aefe94b221b99dd2c5b7c8067a3c6f58d 100644 Binary files "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/c_mat/matcreat.ncb" and "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/c_mat/matcreat.ncb" differ diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/c_mat/matcreat.opt" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/c_mat/matcreat.opt" index c01e855fb707e7ea4300b7a8c3179bf72291cc8a..66aabee2af51664685546371b8aa5b8361757461 100644 Binary files "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/c_mat/matcreat.opt" and "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/c_mat/matcreat.opt" differ diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/c_mat/matcreat.plg" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/c_mat/matcreat.plg" index d759329c9a19875cfbc10adcd544df1a69fa0767..35a21060c47ec2d078e42700a2ab02721fb941ea 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/c_mat/matcreat.plg" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/c_mat/matcreat.plg" @@ -1,3 +1,33 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c5833411c8b3cf952ad3fe54c4aa1793061243f577d822fa5999d6e378046430 -size 1229 + + +
+

Build Log

+

+--------------------Configuration: matcreat - Win32 Debug-------------------- +

+

Command Lines

+Creating temporary file "C:\DOCUME~1\ZXC\LOCALS~1\Temp\RSP1E.tmp" with contents +[ +/nologo /MLd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /Fp"Debug/matcreat.pch" /YX /Fo"Debug/" /Fd"Debug/" /FD /GZ /c +"D:\work\c_mat\matcreat.c" +] +Creating command line "cl.exe @C:\DOCUME~1\ZXC\LOCALS~1\Temp\RSP1E.tmp" +Creating temporary file "C:\DOCUME~1\ZXC\LOCALS~1\Temp\RSP1F.tmp" with contents +[ +kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /incremental:yes /pdb:"Debug/matcreat.pdb" /debug /machine:I386 /out:"Debug/matcreat.exe" /pdbtype:sept +.\Debug\matcreat.obj +] +Creating command line "link.exe @C:\DOCUME~1\ZXC\LOCALS~1\Temp\RSP1F.tmp" +

Output Window

+Compiling... +matcreat.c +d:\work\c_mat\matcreat.c(4) : fatal error C1083: Cannot open include file: 'mat.h': No such file or directory +Error executing cl.exe. + + + +

Results

+matcreat.exe - 1 error(s), 0 warning(s) +
+ + diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/c_mat/matcreate.c" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/c_mat/matcreate.c" index 5ee9d58cd47d9082b4f7e281a12393536b7b9b8e..7aa7bc807015c0373b012c43d8f1baf4d5c74342 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/c_mat/matcreate.c" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/c_mat/matcreate.c" @@ -1,3 +1,7 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f2d188870eef7e2613c2288f1d1c4f1576341bd5c7ad8c9d14fb454c712bb6cb -size 284 +--------------------Configuration: matcreat - Win32 Debug-------------------- +Compiling... +matcreat.c +d:\work\c_mat\matcreat.c(4) : fatal error C1083: Cannot open include file: 'mat.h': No such file or directory +Error executing cl.exe. + +matcreat.exe - 1 error(s), 0 warning(s) diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/c_mat/mexopts.bat" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/c_mat/mexopts.bat" index d277e93ab382d37cc4d91637fb89333b0fd855f5..9fe704baaef5fa31e96e027c8a746fa015e9a466 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/c_mat/mexopts.bat" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/c_mat/mexopts.bat" @@ -1,3 +1,45 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e71c9e05e02be576b40c8e543fc6dadda3709d40d680e70ca8ecd2def6e4689a -size 1738 +@echo off +rem MSVC60ENGMATOPTS.BAT +rem +rem Compile and link options used for building standalone engine or MAT programs +rem with Microsoft Visual C++ compiler version 6.0 +rem +rem $Revision: 1.5 $ $Date: 2000/05/23 18:31:32 $ +rem +rem ******************************************************************** +rem General parameters +rem ******************************************************************** +set MATLAB=%MATLAB% +set MSVCDir=%MSVCDir% +set MSDevDir=%MSVCDir%\..\Common\msdev98 +set PATH=%MSVCDir%\BIN;%MSDevDir%\bin;%PATH% +set INCLUDE=%MSVCDir%\INCLUDE;%MSVCDir%\MFC\INCLUDE;%MSVCDir%\ATL\INCLUDE;%INCLUDE% +set LIB=%MSVCDir%\LIB;%MSVCDir%\MFC\LIB;%LIB% + +rem ******************************************************************** +rem Compiler parameters +rem ******************************************************************** +set COMPILER=cl +set OPTIMFLAGS=-O2 -DNDEBUG +set DEBUGFLAGS=-Zi -Fd"%OUTDIR%%MEX_NAME%.pdb" +set COMPFLAGS=-c -Zp8 -G5 -W3 -nologo +set NAME_OBJECT=/Fo + +rem ******************************************************************** +rem Linker parameters +rem ******************************************************************** +set LIBLOC=%MATLAB%\extern\lib\win32\microsoft\msvc60 +set LINKER=link +set LINKFLAGS= kernel32.lib user32.lib gdi32.lib /LIBPATH:"%LIBLOC%" libmx.lib libmat.lib libeng.lib /nologo +set LINKOPTIMFLAGS= +set LINKDEBUGFLAGS=/debug +set LINK_FILE= +set LINK_LIB= +set NAME_OUTPUT="/out:%OUTDIR%%MEX_NAME%.exe" +set RSP_FILE_INDICATOR=@ + +rem ******************************************************************** +rem Resource compiler parameters +rem ******************************************************************** +set RC_COMPILER= +set RC_LINKER= diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/code/foo.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/code/foo.m" index 207af5ecdb19eff5b6d4c3f011d06e44ae7da5e2..475b6a2dba74b6ea158ed4f3131d4f1f8650e05d 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/code/foo.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/code/foo.m" @@ -1,3 +1,7 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:99d6947a6126306ad8ca6d40dfc2a4a069dc64fe56bdf89b89fcdcb2af67d477 -size 105 +function [a,b]=foo(x,y) +if nargout==0 +elseif nargout==1 + a=x; +elseif nargout==2 + a=x;b=y; +end \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/code/fun.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/code/fun.m" index ef76a8a0bbdf7ae4a89f1ce1da595089d6cb4bba..7688449747401879295e557d3e2083806f0a0864 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/code/fun.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/code/fun.m" @@ -1,3 +1,4 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a4afc8c27e1338f4ff15e12f4d505f505119d42623a0f04aef0b6d2adcf80aee -size 68 +function a=fun(b) +a(1)=b(1).*b(1); +a(2)=b(1)+b(2); +a(3)=b(2)/4; diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/code/gasket.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/code/gasket.m" index c5846921615e06b82d3f53603a68ec0c45a63381..96e04e706188a4f1d4c1adf5ccbfcf16bc0b897f 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/code/gasket.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/code/gasket.m" @@ -1,3 +1,10 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2faa5abeb836f941e20defc52a9b58cd0609b8130210008b80e80eb1475a838f -size 303 +function theImage=gasket(numPoints) +theImage =zeros(1000,1000); +corners=[866 1;1 500;866 1000]; +startPoint=[866 1]; +theRand=rand(numPoints,1); +theRand=ceil(theRand*3); +for i=1:numPoints + startPoint=floor((corners(theRand(i),:)+startPoint)/2); + theImage(startPoint(1),startPoint(2))=1; +end \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/code/sample.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/code/sample.m" index 8dda36ae5aec2163c513c02f869269cf1e7c9cd9..f9490a2d7fa3e0c26a0a09ad9021b4de77e684dd 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/code/sample.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/code/sample.m" @@ -1,3 +1,3 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:cb969b7d7a89ef788771a1a0d8aaf6d43f163e5f1fc1b56ad01f7b6a615d6947 -size 46 +function y=sample(varargin) +varargin{:} +y=0; \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build/main.c" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build/main.c" index 39b47a2e44baf843f3877c7e3d9ec5266a3bcbe3..8d5b891bda0c3ff2c49d43b09581981a0c614f34 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build/main.c" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build/main.c" @@ -1,3 +1,84 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:35e013917561a8e49f5fbb115b07c4ca69ddd63fafc4cb597374adfb9aa6c199 -size 2831 +/* + * MATLAB Compiler: 3.0 + * Date: Sat Sep 04 21:45:06 2004 + * Arguments: "-B" "macro_default" "-O" "all" "-O" "fold_scalar_mxarrays:on" + * "-O" "fold_non_scalar_mxarrays:on" "-O" "optimize_integer_for_loops:on" "-O" + * "array_indexing:on" "-O" "optimize_conditionals:on" "-m" "-W" "main" "-L" + * "C" "-t" "-T" "link:exe" "-h" "libmmfile.mlib" "-c" "main" "mrank" + */ +#include "main.h" +#include "mrank.h" +static mxArray * _mxarray0_; + +void InitializeModule_main(void) { + _mxarray0_ = mclInitializeDouble(5.0); +} + +void TerminateModule_main(void) { + mxDestroyArray(_mxarray0_); +} + +static void Mmain(void); + +_mexLocalFunctionTable _local_function_table_main + = { 0, (mexFunctionTableEntry *)NULL }; + +/* + * The function "mlfMain" contains the normal interface for the "main" + * M-function from file "d:\work\m_build\main.m" (lines 1-2). This function + * processes any input arguments and passes them to the implementation version + * of the function, appearing above. + */ +void mlfMain(void) { + mlfEnterNewContext(0, 0); + Mmain(); + mlfRestorePreviousContext(0, 0); +} + +/* + * The function "mlxMain" contains the feval interface for the "main" + * M-function from file "d:\work\m_build\main.m" (lines 1-2). The feval + * function calls the implementation version of main through this function. + * This function processes any input arguments and passes them to the + * implementation version of the function, appearing above. + */ +void mlxMain(int nlhs, mxArray * plhs[], int nrhs, mxArray * prhs[]) { + if (nlhs > 0) { + mlfError( + mxCreateString( + "Run-time Error: File: main Line: 1 Column: 1 The function \"main\"" + " was called with more than the declared number of outputs (0)."), + NULL); + } + if (nrhs > 0) { + mlfError( + mxCreateString( + "Run-time Error: File: main Line: 1 Column: 1 The function \"main" + "\" was called with more than the declared number of inputs (0)."), + NULL); + } + mlfEnterNewContext(0, 0); + Mmain(); + mlfRestorePreviousContext(0, 0); +} + +/* + * The function "Mmain" is the implementation version of the "main" M-function + * from file "d:\work\m_build\main.m" (lines 1-2). It contains the actual + * compiled code for that M-function. It is a static function and must only be + * called from one of the interface functions, appearing below. + */ +/* + * function main + */ +static void Mmain(void) { + mexLocalFunctionTable save_local_function_table_ + = mclSetCurrentLocalFunctionTable(&_local_function_table_main); + mxArray * r = NULL; + /* + * r=mrank(5); + */ + mlfAssign(&r, mlfMrank(_mxarray0_)); + mxDestroyArray(r); + mclSetCurrentLocalFunctionTable(save_local_function_table_); +} diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build/main.h" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build/main.h" index 0cdc0e79de412dc9c0861ce1d75833a54fb4fcb6..5caf39629ca65d0ac6f595b3b0e7bb81f5ee0b95 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build/main.h" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build/main.h" @@ -1,3 +1,34 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3582c88542c47e6065d37649d6225d7d5fbb8b5ea61669aa37de3c730d5064e6 -size 826 +/* + * MATLAB Compiler: 3.0 + * Date: Sat Sep 04 21:45:06 2004 + * Arguments: "-B" "macro_default" "-O" "all" "-O" "fold_scalar_mxarrays:on" + * "-O" "fold_non_scalar_mxarrays:on" "-O" "optimize_integer_for_loops:on" "-O" + * "array_indexing:on" "-O" "optimize_conditionals:on" "-m" "-W" "main" "-L" + * "C" "-t" "-T" "link:exe" "-h" "libmmfile.mlib" "-c" "main" "mrank" + */ + +#ifndef MLF_V2 +#define MLF_V2 1 +#endif + +#ifndef __main_h +#define __main_h 1 + +#ifdef __cplusplus +extern "C" { +#endif + +#include "libmatlb.h" + +extern void InitializeModule_main(void); +extern void TerminateModule_main(void); +extern _mexLocalFunctionTable _local_function_table_main; + +extern void mlfMain(void); +extern void mlxMain(int nlhs, mxArray * plhs[], int nrhs, mxArray * prhs[]); + +#ifdef __cplusplus +} +#endif + +#endif diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build/main.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build/main.m" index 2c01957acb01b34a9e67729ae113912a74d84ef0..13e76c096b60e1a61d875b46a09ad231f153ba50 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build/main.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build/main.m" @@ -1,3 +1,2 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d1d937473dd4b819fdacd7f5e9968f16e00bcec7bb9ee78382e45cd58b35d022 -size 26 +function main +r=mrank(5); \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build/main_main.c" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build/main_main.c" index 5808db9914b87c71bf2ea22d1df6415756a7cb27..ac9b83bff1a62c9f56de13f1f436dceb12ca8f97 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build/main_main.c" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build/main_main.c" @@ -1,3 +1,40 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5cbd6fb2d2fa72fce271e14a3c2949ea297c0f9dbda9bc9ec461f8e3fd313af8 -size 1397 +/* + * MATLAB Compiler: 3.0 + * Date: Sat Sep 04 21:45:06 2004 + * Arguments: "-B" "macro_default" "-O" "all" "-O" "fold_scalar_mxarrays:on" + * "-O" "fold_non_scalar_mxarrays:on" "-O" "optimize_integer_for_loops:on" "-O" + * "array_indexing:on" "-O" "optimize_conditionals:on" "-m" "-W" "main" "-L" + * "C" "-t" "-T" "link:exe" "-h" "libmmfile.mlib" "-c" "main" "mrank" + */ + +#ifndef MLF_V2 +#define MLF_V2 1 +#endif + +#include "libmatlb.h" +#include "main.h" +#include "mrank.h" +#include "libmmfile.h" + +extern _mex_information _main_info; + +static mexFunctionTableEntry function_table[2] + = { { "main", mlxMain, 0, 0, &_local_function_table_main }, + { "mrank", mlxMrank, 1, 1, &_local_function_table_mrank } }; + +static _mexInitTermTableEntry init_term_table[3] + = { { libmmfileInitialize, libmmfileTerminate }, + { InitializeModule_main, TerminateModule_main }, + { InitializeModule_mrank, TerminateModule_mrank } }; + +_mex_information _main_info + = { 1, 2, function_table, 0, NULL, 0, NULL, 3, init_term_table }; + +/* + * The function "main" is a Compiler-generated main wrapper, suitable for + * building a stand-alone application. It calls a library function to perform + * initialization, call the main function, and perform library termination. + */ +int main(int argc, const char * * argv) { + return mclMain(argc, argv, mlxMain, 0, &_main_info); +} diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build/mrank.c" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build/mrank.c" index 61164ec3222e8ecd288d43efef9cacda41c3c523..538dd0c07963bfa240fceab730ec39950225d777 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build/mrank.c" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build/mrank.c" @@ -1,3 +1,133 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1569ba1f54078af17fcd83817c558f2605eedee18fa2cd9b1d84af303669fc98 -size 4288 +/* + * MATLAB Compiler: 3.0 + * Date: Sat Sep 04 21:45:06 2004 + * Arguments: "-B" "macro_default" "-O" "all" "-O" "fold_scalar_mxarrays:on" + * "-O" "fold_non_scalar_mxarrays:on" "-O" "optimize_integer_for_loops:on" "-O" + * "array_indexing:on" "-O" "optimize_conditionals:on" "-m" "-W" "main" "-L" + * "C" "-t" "-T" "link:exe" "-h" "libmmfile.mlib" "-c" "main" "mrank" + */ +#include "mrank.h" +#include "libmatlbm.h" +#include "libmmfile.h" +static mxArray * _mxarray0_; +static mxArray * _mxarray1_; + +void InitializeModule_mrank(void) { + _mxarray0_ = mclInitializeDouble(1.0); + _mxarray1_ = mclInitializeDoubleVector(0, 0, (double *)NULL); +} + +void TerminateModule_mrank(void) { + mxDestroyArray(_mxarray1_); + mxDestroyArray(_mxarray0_); +} + +static mxArray * Mmrank(int nargout_, mxArray * n); + +_mexLocalFunctionTable _local_function_table_mrank + = { 0, (mexFunctionTableEntry *)NULL }; + +/* + * The function "mlfMrank" contains the normal interface for the "mrank" + * M-function from file "d:\work\m_build\mrank.m" (lines 1-5). This function + * processes any input arguments and passes them to the implementation version + * of the function, appearing above. + */ +mxArray * mlfMrank(mxArray * n) { + int nargout = 1; + mxArray * r = NULL; + mlfEnterNewContext(0, 1, n); + r = Mmrank(nargout, n); + mlfRestorePreviousContext(0, 1, n); + return mlfReturnValue(r); +} + +/* + * The function "mlxMrank" contains the feval interface for the "mrank" + * M-function from file "d:\work\m_build\mrank.m" (lines 1-5). The feval + * function calls the implementation version of mrank through this function. + * This function processes any input arguments and passes them to the + * implementation version of the function, appearing above. + */ +void mlxMrank(int nlhs, mxArray * plhs[], int nrhs, mxArray * prhs[]) { + mxArray * mprhs[1]; + mxArray * mplhs[1]; + int i; + if (nlhs > 1) { + mlfError( + mxCreateString( + "Run-time Error: File: mrank Line: 1 Column: 1 The function \"mrank" + "\" was called with more than the declared number of outputs (1)."), + NULL); + } + if (nrhs > 1) { + mlfError( + mxCreateString( + "Run-time Error: File: mrank Line: 1 Column: 1 The function \"mrank" + "\" was called with more than the declared number of inputs (1)."), + NULL); + } + for (i = 0; i < 1; ++i) { + mplhs[i] = NULL; + } + for (i = 0; i < 1 && i < nrhs; ++i) { + mprhs[i] = prhs[i]; + } + for (; i < 1; ++i) { + mprhs[i] = NULL; + } + mlfEnterNewContext(0, 1, mprhs[0]); + mplhs[0] = Mmrank(nlhs, mprhs[0]); + mlfRestorePreviousContext(0, 1, mprhs[0]); + plhs[0] = mplhs[0]; +} + +/* + * The function "Mmrank" is the implementation version of the "mrank" + * M-function from file "d:\work\m_build\mrank.m" (lines 1-5). It contains the + * actual compiled code for that M-function. It is a static function and must + * only be called from one of the interface functions, appearing below. + */ +/* + * function r=mrank(n) + */ +static mxArray * Mmrank(int nargout_, mxArray * n) { + mexLocalFunctionTable save_local_function_table_ + = mclSetCurrentLocalFunctionTable(&_local_function_table_mrank); + mxArray * r = NULL; + mxArray * k = NULL; + mclCopyArray(&n); + /* + * r=zeros(n,1); + */ + mlfAssign(&r, mlfZeros(mclVa(n, "n"), _mxarray0_, NULL)); + /* + * for k=1:n + */ + { + int v_ = mclForIntStart(1); + int e_ = mclForIntEnd(mclVa(n, "n")); + if (v_ > e_) { + mlfAssign(&k, _mxarray1_); + } else { + /* + * r(k)=rank(magic(k)); + * end + */ + for (; ; ) { + mclIntArrayAssign1( + &r, mlfRank(mlfMagic(mlfScalar(v_)), NULL), v_); + if (v_ == e_) { + break; + } + ++v_; + } + mlfAssign(&k, mlfScalar(v_)); + } + } + mclValidateOutput(r, 1, nargout_, "r", "mrank"); + mxDestroyArray(k); + mxDestroyArray(n); + mclSetCurrentLocalFunctionTable(save_local_function_table_); + return r; +} diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build/mrank.h" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build/mrank.h" index 910450d3c168ee58edec982720a47554100a6664..72aabe0e7a936cc25987aea943108edd9ab353a1 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build/mrank.h" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build/mrank.h" @@ -1,3 +1,34 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a1351f3a107ec1c9249a310dc92a34008d45be9bc0526fe29c2a1cbb48444988 -size 845 +/* + * MATLAB Compiler: 3.0 + * Date: Sat Sep 04 21:45:06 2004 + * Arguments: "-B" "macro_default" "-O" "all" "-O" "fold_scalar_mxarrays:on" + * "-O" "fold_non_scalar_mxarrays:on" "-O" "optimize_integer_for_loops:on" "-O" + * "array_indexing:on" "-O" "optimize_conditionals:on" "-m" "-W" "main" "-L" + * "C" "-t" "-T" "link:exe" "-h" "libmmfile.mlib" "-c" "main" "mrank" + */ + +#ifndef MLF_V2 +#define MLF_V2 1 +#endif + +#ifndef __mrank_h +#define __mrank_h 1 + +#ifdef __cplusplus +extern "C" { +#endif + +#include "libmatlb.h" + +extern void InitializeModule_mrank(void); +extern void TerminateModule_mrank(void); +extern _mexLocalFunctionTable _local_function_table_mrank; + +extern mxArray * mlfMrank(mxArray * n); +extern void mlxMrank(int nlhs, mxArray * plhs[], int nrhs, mxArray * prhs[]); + +#ifdef __cplusplus +} +#endif + +#endif diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build/mrank.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build/mrank.m" index 0647ecf86f37291f5095c99ee5e36caa4704a898..ed47517dce1c9d7a83a91ddff10e49411a51ff69 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build/mrank.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build/mrank.m" @@ -1,3 +1,5 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2a4640b9b0e8dc4835a136db8aebf0efd703307f35b73a4043aa845779386d72 -size 76 +function r=mrank(n) +r=zeros(n,1); +for k=1:n + r(k)=rank(magic(k)); +end \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build1/main.c" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build1/main.c" index 9c8595218aaab65fb91be2c727a98833b8b688a8..f17aa8a532a91b3aafba7e7757931585f9179285 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build1/main.c" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build1/main.c" @@ -1,3 +1,84 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6b6d595cce862bd264dfaab1ea424146411b5a272bdb3c563cf00e359b540fba -size 2829 +/* + * MATLAB Compiler: 3.0 + * Date: Sat Sep 04 21:49:59 2004 + * Arguments: "-B" "macro_default" "-O" "all" "-O" "fold_scalar_mxarrays:on" + * "-O" "fold_non_scalar_mxarrays:on" "-O" "optimize_integer_for_loops:on" "-O" + * "array_indexing:on" "-O" "optimize_conditionals:on" "-m" "-W" "main" "-L" + * "C" "-t" "-T" "link:exe" "-h" "libmmfile.mlib" "main" "mrank" + */ +#include "main.h" +#include "mrank.h" +static mxArray * _mxarray0_; + +void InitializeModule_main(void) { + _mxarray0_ = mclInitializeDouble(5.0); +} + +void TerminateModule_main(void) { + mxDestroyArray(_mxarray0_); +} + +static void Mmain(void); + +_mexLocalFunctionTable _local_function_table_main + = { 0, (mexFunctionTableEntry *)NULL }; + +/* + * The function "mlfMain" contains the normal interface for the "main" + * M-function from file "d:\work\m_build1\main.m" (lines 1-2). This function + * processes any input arguments and passes them to the implementation version + * of the function, appearing above. + */ +void mlfMain(void) { + mlfEnterNewContext(0, 0); + Mmain(); + mlfRestorePreviousContext(0, 0); +} + +/* + * The function "mlxMain" contains the feval interface for the "main" + * M-function from file "d:\work\m_build1\main.m" (lines 1-2). The feval + * function calls the implementation version of main through this function. + * This function processes any input arguments and passes them to the + * implementation version of the function, appearing above. + */ +void mlxMain(int nlhs, mxArray * plhs[], int nrhs, mxArray * prhs[]) { + if (nlhs > 0) { + mlfError( + mxCreateString( + "Run-time Error: File: main Line: 1 Column: 1 The function \"main\"" + " was called with more than the declared number of outputs (0)."), + NULL); + } + if (nrhs > 0) { + mlfError( + mxCreateString( + "Run-time Error: File: main Line: 1 Column: 1 The function \"main" + "\" was called with more than the declared number of inputs (0)."), + NULL); + } + mlfEnterNewContext(0, 0); + Mmain(); + mlfRestorePreviousContext(0, 0); +} + +/* + * The function "Mmain" is the implementation version of the "main" M-function + * from file "d:\work\m_build1\main.m" (lines 1-2). It contains the actual + * compiled code for that M-function. It is a static function and must only be + * called from one of the interface functions, appearing below. + */ +/* + * function main + */ +static void Mmain(void) { + mexLocalFunctionTable save_local_function_table_ + = mclSetCurrentLocalFunctionTable(&_local_function_table_main); + mxArray * r = NULL; + /* + * r=mrank(5); + */ + mlfAssign(&r, mlfMrank(_mxarray0_)); + mxDestroyArray(r); + mclSetCurrentLocalFunctionTable(save_local_function_table_); +} diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build1/main.exe" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build1/main.exe" index d992a09fc457ac8c6218c231b65db84cda4f82a5..37c446a069cd03cd9662d20cccbf0460857c1429 100644 Binary files "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build1/main.exe" and "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build1/main.exe" differ diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build1/main.h" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build1/main.h" index 260ddbb57f290b16f055043181bcc7f03f9313ca..45468a61b213e181a07bad1f8f3e78b5b9aed3d3 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build1/main.h" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build1/main.h" @@ -1,3 +1,34 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ddd16c21ad190d9efd33e506c5e92542619c5087cd4f53546336b3e1a8268a4c -size 821 +/* + * MATLAB Compiler: 3.0 + * Date: Sat Sep 04 21:49:59 2004 + * Arguments: "-B" "macro_default" "-O" "all" "-O" "fold_scalar_mxarrays:on" + * "-O" "fold_non_scalar_mxarrays:on" "-O" "optimize_integer_for_loops:on" "-O" + * "array_indexing:on" "-O" "optimize_conditionals:on" "-m" "-W" "main" "-L" + * "C" "-t" "-T" "link:exe" "-h" "libmmfile.mlib" "main" "mrank" + */ + +#ifndef MLF_V2 +#define MLF_V2 1 +#endif + +#ifndef __main_h +#define __main_h 1 + +#ifdef __cplusplus +extern "C" { +#endif + +#include "libmatlb.h" + +extern void InitializeModule_main(void); +extern void TerminateModule_main(void); +extern _mexLocalFunctionTable _local_function_table_main; + +extern void mlfMain(void); +extern void mlxMain(int nlhs, mxArray * plhs[], int nrhs, mxArray * prhs[]); + +#ifdef __cplusplus +} +#endif + +#endif diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build1/main.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build1/main.m" index 2c01957acb01b34a9e67729ae113912a74d84ef0..13e76c096b60e1a61d875b46a09ad231f153ba50 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build1/main.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build1/main.m" @@ -1,3 +1,2 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d1d937473dd4b819fdacd7f5e9968f16e00bcec7bb9ee78382e45cd58b35d022 -size 26 +function main +r=mrank(5); \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build1/main_main.c" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build1/main_main.c" index bb3bf1e7a241aaddde5bea6b946fa7b7cb13c690..2ac9d1d0ac21b893bfdd74e0f4f506616a2a063a 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build1/main_main.c" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build1/main_main.c" @@ -1,3 +1,40 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:981346841f54dc053579a31aa71ff9133c2e52b24a5b413b2554d64cc5168253 -size 1392 +/* + * MATLAB Compiler: 3.0 + * Date: Sat Sep 04 21:49:59 2004 + * Arguments: "-B" "macro_default" "-O" "all" "-O" "fold_scalar_mxarrays:on" + * "-O" "fold_non_scalar_mxarrays:on" "-O" "optimize_integer_for_loops:on" "-O" + * "array_indexing:on" "-O" "optimize_conditionals:on" "-m" "-W" "main" "-L" + * "C" "-t" "-T" "link:exe" "-h" "libmmfile.mlib" "main" "mrank" + */ + +#ifndef MLF_V2 +#define MLF_V2 1 +#endif + +#include "libmatlb.h" +#include "main.h" +#include "mrank.h" +#include "libmmfile.h" + +extern _mex_information _main_info; + +static mexFunctionTableEntry function_table[2] + = { { "main", mlxMain, 0, 0, &_local_function_table_main }, + { "mrank", mlxMrank, 1, 1, &_local_function_table_mrank } }; + +static _mexInitTermTableEntry init_term_table[3] + = { { libmmfileInitialize, libmmfileTerminate }, + { InitializeModule_main, TerminateModule_main }, + { InitializeModule_mrank, TerminateModule_mrank } }; + +_mex_information _main_info + = { 1, 2, function_table, 0, NULL, 0, NULL, 3, init_term_table }; + +/* + * The function "main" is a Compiler-generated main wrapper, suitable for + * building a stand-alone application. It calls a library function to perform + * initialization, call the main function, and perform library termination. + */ +int main(int argc, const char * * argv) { + return mclMain(argc, argv, mlxMain, 0, &_main_info); +} diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build1/mrank.c" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build1/mrank.c" index f2b2fc4f46922d39bbfc079844f90e7a7f9e7374..601a6a4054e9495ab451e4cbd5ce3f7082a06b00 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build1/mrank.c" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build1/mrank.c" @@ -1,3 +1,139 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d9a12dec37a30e2541d26a49aa98d16024cafc2ce7cab557edbf0690f19f6fef -size 4406 +/* + * MATLAB Compiler: 3.0 + * Date: Sat Sep 04 21:49:59 2004 + * Arguments: "-B" "macro_default" "-O" "all" "-O" "fold_scalar_mxarrays:on" + * "-O" "fold_non_scalar_mxarrays:on" "-O" "optimize_integer_for_loops:on" "-O" + * "array_indexing:on" "-O" "optimize_conditionals:on" "-m" "-W" "main" "-L" + * "C" "-t" "-T" "link:exe" "-h" "libmmfile.mlib" "main" "mrank" + */ +#include "mrank.h" +#include "libmatlbm.h" +#include "libmmfile.h" +static mxArray * _mxarray0_; +static mxArray * _mxarray1_; + +void InitializeModule_mrank(void) { + _mxarray0_ = mclInitializeDouble(1.0); + _mxarray1_ = mclInitializeDoubleVector(0, 0, (double *)NULL); +} + +void TerminateModule_mrank(void) { + mxDestroyArray(_mxarray1_); + mxDestroyArray(_mxarray0_); +} + +static mxArray * Mmrank(int nargout_, mxArray * n); + +_mexLocalFunctionTable _local_function_table_mrank + = { 0, (mexFunctionTableEntry *)NULL }; + +/* + * The function "mlfMrank" contains the normal interface for the "mrank" + * M-function from file "d:\work\m_build1\mrank.m" (lines 1-6). This function + * processes any input arguments and passes them to the implementation version + * of the function, appearing above. + */ +mxArray * mlfMrank(mxArray * n) { + int nargout = 1; + mxArray * r = NULL; + mlfEnterNewContext(0, 1, n); + r = Mmrank(nargout, n); + mlfRestorePreviousContext(0, 1, n); + return mlfReturnValue(r); +} + +/* + * The function "mlxMrank" contains the feval interface for the "mrank" + * M-function from file "d:\work\m_build1\mrank.m" (lines 1-6). The feval + * function calls the implementation version of mrank through this function. + * This function processes any input arguments and passes them to the + * implementation version of the function, appearing above. + */ +void mlxMrank(int nlhs, mxArray * plhs[], int nrhs, mxArray * prhs[]) { + mxArray * mprhs[1]; + mxArray * mplhs[1]; + int i; + if (nlhs > 1) { + mlfError( + mxCreateString( + "Run-time Error: File: mrank Line: 1 Column: 1 The function \"mrank" + "\" was called with more than the declared number of outputs (1)."), + NULL); + } + if (nrhs > 1) { + mlfError( + mxCreateString( + "Run-time Error: File: mrank Line: 1 Column: 1 The function \"mrank" + "\" was called with more than the declared number of inputs (1)."), + NULL); + } + for (i = 0; i < 1; ++i) { + mplhs[i] = NULL; + } + for (i = 0; i < 1 && i < nrhs; ++i) { + mprhs[i] = prhs[i]; + } + for (; i < 1; ++i) { + mprhs[i] = NULL; + } + mlfEnterNewContext(0, 1, mprhs[0]); + mplhs[0] = Mmrank(nlhs, mprhs[0]); + mlfRestorePreviousContext(0, 1, mprhs[0]); + plhs[0] = mplhs[0]; +} + +/* + * The function "Mmrank" is the implementation version of the "mrank" + * M-function from file "d:\work\m_build1\mrank.m" (lines 1-6). It contains the + * actual compiled code for that M-function. It is a static function and must + * only be called from one of the interface functions, appearing below. + */ +/* + * function r=mrank(n) + */ +static mxArray * Mmrank(int nargout_, mxArray * n) { + mexLocalFunctionTable save_local_function_table_ + = mclSetCurrentLocalFunctionTable(&_local_function_table_mrank); + mxArray * r = NULL; + mxArray * ans = NULL; + mxArray * k = NULL; + mclCopyArray(&n); + /* + * r=zeros(n,1); + */ + mlfAssign(&r, mlfZeros(mclVa(n, "n"), _mxarray0_, NULL)); + /* + * for k=1:n + */ + { + int v_ = mclForIntStart(1); + int e_ = mclForIntEnd(mclVa(n, "n")); + if (v_ > e_) { + mlfAssign(&k, _mxarray1_); + } else { + /* + * r(k)=rank(magic(k)); + * end + */ + for (; ; ) { + mclIntArrayAssign1( + &r, mlfRank(mlfMagic(mlfScalar(v_)), NULL), v_); + if (v_ == e_) { + break; + } + ++v_; + } + mlfAssign(&k, mlfScalar(v_)); + } + } + /* + * r + */ + mclPrintArray(mclVv(r, "r"), "r"); + mclValidateOutput(r, 1, nargout_, "r", "mrank"); + mxDestroyArray(k); + mxDestroyArray(ans); + mxDestroyArray(n); + mclSetCurrentLocalFunctionTable(save_local_function_table_); + return r; +} diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build1/mrank.h" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build1/mrank.h" index 72564b605eef22e0b73152ed82cbcf1af4c2170c..1e1918fc994a8e7b4f2d454a7327077cd104b6b0 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build1/mrank.h" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build1/mrank.h" @@ -1,3 +1,34 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:bfb70999a7fb2f4acb07e9ba77824d8a1b140709804beb332ac036b3083233be -size 840 +/* + * MATLAB Compiler: 3.0 + * Date: Sat Sep 04 21:49:59 2004 + * Arguments: "-B" "macro_default" "-O" "all" "-O" "fold_scalar_mxarrays:on" + * "-O" "fold_non_scalar_mxarrays:on" "-O" "optimize_integer_for_loops:on" "-O" + * "array_indexing:on" "-O" "optimize_conditionals:on" "-m" "-W" "main" "-L" + * "C" "-t" "-T" "link:exe" "-h" "libmmfile.mlib" "main" "mrank" + */ + +#ifndef MLF_V2 +#define MLF_V2 1 +#endif + +#ifndef __mrank_h +#define __mrank_h 1 + +#ifdef __cplusplus +extern "C" { +#endif + +#include "libmatlb.h" + +extern void InitializeModule_mrank(void); +extern void TerminateModule_mrank(void); +extern _mexLocalFunctionTable _local_function_table_mrank; + +extern mxArray * mlfMrank(mxArray * n); +extern void mlxMrank(int nlhs, mxArray * plhs[], int nrhs, mxArray * prhs[]); + +#ifdef __cplusplus +} +#endif + +#endif diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build1/mrank.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build1/mrank.m" index 848407809a7225b403eae9497b592a20ac38bb55..31ef706f78d4e8e844142866c4208b8f756f8b0f 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build1/mrank.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build1/mrank.m" @@ -1,3 +1,6 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b9bc273b361e6cddc1f1bb66d46c11d2f1017b5a6e8453b349ad4a44056835e5 -size 79 +function r=mrank(n) +r=zeros(n,1); +for k=1:n + r(k)=rank(magic(k)); +end +r \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build2/magic.h" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build2/magic.h" index a9eb81d7b985074603b4bf0e3e088419bfde0b69..8086350a42ccabe73aa19f16fef23b1f2d1d08bc 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build2/magic.h" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build2/magic.h" @@ -1,3 +1,33 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:68d744fb07a62ad8c8a3c7a631f945e7e1cdaed68ca8dbd35b5d0bd84fc2d43c -size 765 +/* + * MATLAB Compiler: 3.0 + * Date: Sat Sep 04 21:59:48 2004 + * Arguments: "-B" "macro_default" "-O" "all" "-O" "fold_scalar_mxarrays:on" + * "-O" "fold_non_scalar_mxarrays:on" "-O" "optimize_integer_for_loops:on" "-O" + * "array_indexing:on" "-O" "optimize_conditionals:on" "-t" "mrank" + */ + +#ifndef MLF_V2 +#define MLF_V2 1 +#endif + +#ifndef __magic_h +#define __magic_h 1 + +#ifdef __cplusplus +extern "C" { +#endif + +#include "libmatlb.h" + +extern void InitializeModule_magic(void); +extern void TerminateModule_magic(void); +extern _mexLocalFunctionTable _local_function_table_magic; + +extern mxArray * mlfMagic(mxArray * n); +extern void mlxMagic(int nlhs, mxArray * plhs[], int nrhs, mxArray * prhs[]); + +#ifdef __cplusplus +} +#endif + +#endif diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build2/main.c" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build2/main.c" index 436552a3f36794611be386df46c5dec7291e7645..8e5e4292789cc0d8382f5babdd7a22a33f21fcd5 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build2/main.c" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build2/main.c" @@ -1,3 +1,85 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:81c449421388f40f8de3e8ae2fa81e5f91c57f50f86dc849aeab9e5fc8f9e204 -size 2849 +/* + * MATLAB Compiler: 3.0 + * Date: Sat Sep 04 22:04:33 2004 + * Arguments: "-B" "macro_default" "-O" "all" "-O" "fold_scalar_mxarrays:on" + * "-O" "fold_non_scalar_mxarrays:on" "-O" "optimize_integer_for_loops:on" "-O" + * "array_indexing:on" "-O" "optimize_conditionals:on" "-m" "-W" "main" "-L" + * "C" "-t" "-T" "link:exe" "-h" "libmmfile.mlib" "main.m" "my_rank.m" + * "mrank.m" + */ +#include "main.h" +#include "mrank.h" +static mxArray * _mxarray0_; + +void InitializeModule_main(void) { + _mxarray0_ = mclInitializeDouble(5.0); +} + +void TerminateModule_main(void) { + mxDestroyArray(_mxarray0_); +} + +static void Mmain(void); + +_mexLocalFunctionTable _local_function_table_main + = { 0, (mexFunctionTableEntry *)NULL }; + +/* + * The function "mlfMain" contains the normal interface for the "main" + * M-function from file "d:\work\m_build2\main.m" (lines 1-2). This function + * processes any input arguments and passes them to the implementation version + * of the function, appearing above. + */ +void mlfMain(void) { + mlfEnterNewContext(0, 0); + Mmain(); + mlfRestorePreviousContext(0, 0); +} + +/* + * The function "mlxMain" contains the feval interface for the "main" + * M-function from file "d:\work\m_build2\main.m" (lines 1-2). The feval + * function calls the implementation version of main through this function. + * This function processes any input arguments and passes them to the + * implementation version of the function, appearing above. + */ +void mlxMain(int nlhs, mxArray * plhs[], int nrhs, mxArray * prhs[]) { + if (nlhs > 0) { + mlfError( + mxCreateString( + "Run-time Error: File: main Line: 1 Column: 1 The function \"main\"" + " was called with more than the declared number of outputs (0)."), + NULL); + } + if (nrhs > 0) { + mlfError( + mxCreateString( + "Run-time Error: File: main Line: 1 Column: 1 The function \"main" + "\" was called with more than the declared number of inputs (0)."), + NULL); + } + mlfEnterNewContext(0, 0); + Mmain(); + mlfRestorePreviousContext(0, 0); +} + +/* + * The function "Mmain" is the implementation version of the "main" M-function + * from file "d:\work\m_build2\main.m" (lines 1-2). It contains the actual + * compiled code for that M-function. It is a static function and must only be + * called from one of the interface functions, appearing below. + */ +/* + * function main + */ +static void Mmain(void) { + mexLocalFunctionTable save_local_function_table_ + = mclSetCurrentLocalFunctionTable(&_local_function_table_main); + mxArray * r = NULL; + /* + * r=mrank(5); + */ + mlfAssign(&r, mlfMrank(_mxarray0_)); + mxDestroyArray(r); + mclSetCurrentLocalFunctionTable(save_local_function_table_); +} diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build2/main.exe" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build2/main.exe" index 5e5a3ba155dc4bda593499775c6b0c1e049a6f8c..1e550f0f756bf48c5c49819c8d6667e67be8bc57 100644 Binary files "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build2/main.exe" and "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build2/main.exe" differ diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build2/main.h" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build2/main.h" index f8545ad7239d7957cfd997c5d4afd836eca1dc2d..f38b12d8c279290816738b2ea46e95ab827ecfed 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build2/main.h" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build2/main.h" @@ -1,3 +1,35 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4517b2e5ae6d693322258bc95701bc6b5ca578fd537d2048f70705193550e22b -size 841 +/* + * MATLAB Compiler: 3.0 + * Date: Sat Sep 04 22:04:33 2004 + * Arguments: "-B" "macro_default" "-O" "all" "-O" "fold_scalar_mxarrays:on" + * "-O" "fold_non_scalar_mxarrays:on" "-O" "optimize_integer_for_loops:on" "-O" + * "array_indexing:on" "-O" "optimize_conditionals:on" "-m" "-W" "main" "-L" + * "C" "-t" "-T" "link:exe" "-h" "libmmfile.mlib" "main.m" "my_rank.m" + * "mrank.m" + */ + +#ifndef MLF_V2 +#define MLF_V2 1 +#endif + +#ifndef __main_h +#define __main_h 1 + +#ifdef __cplusplus +extern "C" { +#endif + +#include "libmatlb.h" + +extern void InitializeModule_main(void); +extern void TerminateModule_main(void); +extern _mexLocalFunctionTable _local_function_table_main; + +extern void mlfMain(void); +extern void mlxMain(int nlhs, mxArray * plhs[], int nrhs, mxArray * prhs[]); + +#ifdef __cplusplus +} +#endif + +#endif diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build2/main.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build2/main.m" index 2c01957acb01b34a9e67729ae113912a74d84ef0..13e76c096b60e1a61d875b46a09ad231f153ba50 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build2/main.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build2/main.m" @@ -1,3 +1,2 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d1d937473dd4b819fdacd7f5e9968f16e00bcec7bb9ee78382e45cd58b35d022 -size 26 +function main +r=mrank(5); \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build2/main_main.c" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build2/main_main.c" index 9c51266c5880b2af7f81300d39c0fe7dc8709883..55fa94d7b226905937c7dfb1fe4738cc238f8de9 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build2/main_main.c" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build2/main_main.c" @@ -1,3 +1,44 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b60e3fe38de08ced27aeeb06101a7f1c3f03c7a859f2f14eeeac0a2bf5cc767a -size 1568 +/* + * MATLAB Compiler: 3.0 + * Date: Sat Sep 04 22:04:33 2004 + * Arguments: "-B" "macro_default" "-O" "all" "-O" "fold_scalar_mxarrays:on" + * "-O" "fold_non_scalar_mxarrays:on" "-O" "optimize_integer_for_loops:on" "-O" + * "array_indexing:on" "-O" "optimize_conditionals:on" "-m" "-W" "main" "-L" + * "C" "-t" "-T" "link:exe" "-h" "libmmfile.mlib" "main.m" "my_rank.m" + * "mrank.m" + */ + +#ifndef MLF_V2 +#define MLF_V2 1 +#endif + +#include "libmatlb.h" +#include "main.h" +#include "my_rank.h" +#include "mrank.h" +#include "libmmfile.h" + +extern _mex_information _main_info; + +static mexFunctionTableEntry function_table[3] + = { { "main", mlxMain, 0, 0, &_local_function_table_main }, + { "my_rank", mlxMy_rank, 2, 1, &_local_function_table_my_rank }, + { "mrank", mlxMrank, 1, 1, &_local_function_table_mrank } }; + +static _mexInitTermTableEntry init_term_table[4] + = { { libmmfileInitialize, libmmfileTerminate }, + { InitializeModule_main, TerminateModule_main }, + { InitializeModule_my_rank, TerminateModule_my_rank }, + { InitializeModule_mrank, TerminateModule_mrank } }; + +_mex_information _main_info + = { 1, 3, function_table, 0, NULL, 0, NULL, 4, init_term_table }; + +/* + * The function "main" is a Compiler-generated main wrapper, suitable for + * building a stand-alone application. It calls a library function to perform + * initialization, call the main function, and perform library termination. + */ +int main(int argc, const char * * argv) { + return mclMain(argc, argv, mlxMain, 0, &_main_info); +} diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build2/mrank.c" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build2/mrank.c" index 46ef83e55f50811531bd897c7b600938e14dc6f0..c58cfc3f7c4aab9323c97dbe9563b9079073044e 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build2/mrank.c" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build2/mrank.c" @@ -1,3 +1,141 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5f70c82ae276eaa802d52e893a9c7f77cccfe2171ae226818c2fd73264c19106 -size 4454 +/* + * MATLAB Compiler: 3.0 + * Date: Sat Sep 04 22:04:33 2004 + * Arguments: "-B" "macro_default" "-O" "all" "-O" "fold_scalar_mxarrays:on" + * "-O" "fold_non_scalar_mxarrays:on" "-O" "optimize_integer_for_loops:on" "-O" + * "array_indexing:on" "-O" "optimize_conditionals:on" "-m" "-W" "main" "-L" + * "C" "-t" "-T" "link:exe" "-h" "libmmfile.mlib" "main.m" "my_rank.m" + * "mrank.m" + */ +#include "mrank.h" +#include "libmatlbm.h" +#include "libmmfile.h" +#include "my_rank.h" +static mxArray * _mxarray0_; +static mxArray * _mxarray1_; + +void InitializeModule_mrank(void) { + _mxarray0_ = mclInitializeDouble(1.0); + _mxarray1_ = mclInitializeDoubleVector(0, 0, (double *)NULL); +} + +void TerminateModule_mrank(void) { + mxDestroyArray(_mxarray1_); + mxDestroyArray(_mxarray0_); +} + +static mxArray * Mmrank(int nargout_, mxArray * n); + +_mexLocalFunctionTable _local_function_table_mrank + = { 0, (mexFunctionTableEntry *)NULL }; + +/* + * The function "mlfMrank" contains the normal interface for the "mrank" + * M-function from file "d:\work\m_build2\mrank.m" (lines 1-6). This function + * processes any input arguments and passes them to the implementation version + * of the function, appearing above. + */ +mxArray * mlfMrank(mxArray * n) { + int nargout = 1; + mxArray * r = NULL; + mlfEnterNewContext(0, 1, n); + r = Mmrank(nargout, n); + mlfRestorePreviousContext(0, 1, n); + return mlfReturnValue(r); +} + +/* + * The function "mlxMrank" contains the feval interface for the "mrank" + * M-function from file "d:\work\m_build2\mrank.m" (lines 1-6). The feval + * function calls the implementation version of mrank through this function. + * This function processes any input arguments and passes them to the + * implementation version of the function, appearing above. + */ +void mlxMrank(int nlhs, mxArray * plhs[], int nrhs, mxArray * prhs[]) { + mxArray * mprhs[1]; + mxArray * mplhs[1]; + int i; + if (nlhs > 1) { + mlfError( + mxCreateString( + "Run-time Error: File: mrank Line: 1 Column: 1 The function \"mrank" + "\" was called with more than the declared number of outputs (1)."), + NULL); + } + if (nrhs > 1) { + mlfError( + mxCreateString( + "Run-time Error: File: mrank Line: 1 Column: 1 The function \"mrank" + "\" was called with more than the declared number of inputs (1)."), + NULL); + } + for (i = 0; i < 1; ++i) { + mplhs[i] = NULL; + } + for (i = 0; i < 1 && i < nrhs; ++i) { + mprhs[i] = prhs[i]; + } + for (; i < 1; ++i) { + mprhs[i] = NULL; + } + mlfEnterNewContext(0, 1, mprhs[0]); + mplhs[0] = Mmrank(nlhs, mprhs[0]); + mlfRestorePreviousContext(0, 1, mprhs[0]); + plhs[0] = mplhs[0]; +} + +/* + * The function "Mmrank" is the implementation version of the "mrank" + * M-function from file "d:\work\m_build2\mrank.m" (lines 1-6). It contains the + * actual compiled code for that M-function. It is a static function and must + * only be called from one of the interface functions, appearing below. + */ +/* + * function r=mrank(n) + */ +static mxArray * Mmrank(int nargout_, mxArray * n) { + mexLocalFunctionTable save_local_function_table_ + = mclSetCurrentLocalFunctionTable(&_local_function_table_mrank); + mxArray * r = NULL; + mxArray * ans = NULL; + mxArray * k = NULL; + mclCopyArray(&n); + /* + * r=zeros(n,1); + */ + mlfAssign(&r, mlfZeros(mclVa(n, "n"), _mxarray0_, NULL)); + /* + * for k=1:n + */ + { + int v_ = mclForIntStart(1); + int e_ = mclForIntEnd(mclVa(n, "n")); + if (v_ > e_) { + mlfAssign(&k, _mxarray1_); + } else { + /* + * r(k)=my_rank(magic(k)); + * end + */ + for (; ; ) { + mclIntArrayAssign1( + &r, mlfMy_rank(mlfMagic(mlfScalar(v_)), NULL), v_); + if (v_ == e_) { + break; + } + ++v_; + } + mlfAssign(&k, mlfScalar(v_)); + } + } + /* + * r + */ + mclPrintArray(mclVv(r, "r"), "r"); + mclValidateOutput(r, 1, nargout_, "r", "mrank"); + mxDestroyArray(k); + mxDestroyArray(ans); + mxDestroyArray(n); + mclSetCurrentLocalFunctionTable(save_local_function_table_); + return r; +} diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build2/mrank.h" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build2/mrank.h" index fce60205f2243368c58bec2613e56910a9300edb..e1d5599701062ea87e4131318ce382c19e2ca331 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build2/mrank.h" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build2/mrank.h" @@ -1,3 +1,35 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:81dc7166e2430c9487d57da402939bc525cfd48dcaa377bd719d8d745493817b -size 860 +/* + * MATLAB Compiler: 3.0 + * Date: Sat Sep 04 22:04:33 2004 + * Arguments: "-B" "macro_default" "-O" "all" "-O" "fold_scalar_mxarrays:on" + * "-O" "fold_non_scalar_mxarrays:on" "-O" "optimize_integer_for_loops:on" "-O" + * "array_indexing:on" "-O" "optimize_conditionals:on" "-m" "-W" "main" "-L" + * "C" "-t" "-T" "link:exe" "-h" "libmmfile.mlib" "main.m" "my_rank.m" + * "mrank.m" + */ + +#ifndef MLF_V2 +#define MLF_V2 1 +#endif + +#ifndef __mrank_h +#define __mrank_h 1 + +#ifdef __cplusplus +extern "C" { +#endif + +#include "libmatlb.h" + +extern void InitializeModule_mrank(void); +extern void TerminateModule_mrank(void); +extern _mexLocalFunctionTable _local_function_table_mrank; + +extern mxArray * mlfMrank(mxArray * n); +extern void mlxMrank(int nlhs, mxArray * plhs[], int nrhs, mxArray * prhs[]); + +#ifdef __cplusplus +} +#endif + +#endif diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build2/mrank.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build2/mrank.m" index cd3779a513046b65f850814f2fe59cf2acc0ae11..ef85acc6966760530dc55a758fc159bfe3619439 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build2/mrank.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build2/mrank.m" @@ -1,3 +1,6 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7c21249a56e9fc5daab7420ca5315335ac829cdde4bfbdfb1c8ab7d64e1f8933 -size 82 +function r=mrank(n) +r=zeros(n,1); +for k=1:n + r(k)=my_rank(magic(k)); +end +r \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build2/my_rank.c" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build2/my_rank.c" index 1f8edf5bf1e0f4fa7552e7b0e0a030f78df4e06d..12c82347c1c92c136a6425e3577dc3ae13250921 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build2/my_rank.c" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build2/my_rank.c" @@ -1,3 +1,148 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5391f7993c9261097498ebac474835689900a52a5099096cc735a42ce168cef7 -size 4949 +/* + * MATLAB Compiler: 3.0 + * Date: Sat Sep 04 22:04:33 2004 + * Arguments: "-B" "macro_default" "-O" "all" "-O" "fold_scalar_mxarrays:on" + * "-O" "fold_non_scalar_mxarrays:on" "-O" "optimize_integer_for_loops:on" "-O" + * "array_indexing:on" "-O" "optimize_conditionals:on" "-m" "-W" "main" "-L" + * "C" "-t" "-T" "link:exe" "-h" "libmmfile.mlib" "main.m" "my_rank.m" + * "mrank.m" + */ +#include "my_rank.h" +#include "libmatlbm.h" +static mxArray * _mxarray0_; + +void InitializeModule_my_rank(void) { + _mxarray0_ = mclInitializeDouble(2.220446049250313e-16); +} + +void TerminateModule_my_rank(void) { + mxDestroyArray(_mxarray0_); +} + +static mxArray * Mmy_rank(int nargout_, mxArray * A, mxArray * tol); + +_mexLocalFunctionTable _local_function_table_my_rank + = { 0, (mexFunctionTableEntry *)NULL }; + +/* + * The function "mlfMy_rank" contains the normal interface for the "my_rank" + * M-function from file "d:\work\m_build2\my_rank.m" (lines 1-16). This + * function processes any input arguments and passes them to the implementation + * version of the function, appearing above. + */ +mxArray * mlfMy_rank(mxArray * A, mxArray * tol) { + int nargout = 1; + mxArray * r = NULL; + mlfEnterNewContext(0, 2, A, tol); + r = Mmy_rank(nargout, A, tol); + mlfRestorePreviousContext(0, 2, A, tol); + return mlfReturnValue(r); +} + +/* + * The function "mlxMy_rank" contains the feval interface for the "my_rank" + * M-function from file "d:\work\m_build2\my_rank.m" (lines 1-16). The feval + * function calls the implementation version of my_rank through this function. + * This function processes any input arguments and passes them to the + * implementation version of the function, appearing above. + */ +void mlxMy_rank(int nlhs, mxArray * plhs[], int nrhs, mxArray * prhs[]) { + mxArray * mprhs[2]; + mxArray * mplhs[1]; + int i; + if (nlhs > 1) { + mlfError( + mxCreateString( + "Run-time Error: File: my_rank Line: 1 Column: " + "1 The function \"my_rank\" was called with mor" + "e than the declared number of outputs (1)."), + NULL); + } + if (nrhs > 2) { + mlfError( + mxCreateString( + "Run-time Error: File: my_rank Line: 1 Column:" + " 1 The function \"my_rank\" was called with m" + "ore than the declared number of inputs (2)."), + NULL); + } + for (i = 0; i < 1; ++i) { + mplhs[i] = NULL; + } + for (i = 0; i < 2 && i < nrhs; ++i) { + mprhs[i] = prhs[i]; + } + for (; i < 2; ++i) { + mprhs[i] = NULL; + } + mlfEnterNewContext(0, 2, mprhs[0], mprhs[1]); + mplhs[0] = Mmy_rank(nlhs, mprhs[0], mprhs[1]); + mlfRestorePreviousContext(0, 2, mprhs[0], mprhs[1]); + plhs[0] = mplhs[0]; +} + +/* + * The function "Mmy_rank" is the implementation version of the "my_rank" + * M-function from file "d:\work\m_build2\my_rank.m" (lines 1-16). It contains + * the actual compiled code for that M-function. It is a static function and + * must only be called from one of the interface functions, appearing below. + */ +/* + * function r = my_rank(A,tol) + */ +static mxArray * Mmy_rank(int nargout_, mxArray * A, mxArray * tol) { + mexLocalFunctionTable save_local_function_table_ + = mclSetCurrentLocalFunctionTable(&_local_function_table_my_rank); + int nargin_ = mclNargin(2, A, tol, NULL); + mxArray * r = NULL; + mxArray * s = NULL; + mclCopyArray(&A); + mclCopyArray(&tol); + /* + * %RANK Matrix rank. + * % RANK(A) provides an estimate of the number of linearly + * % independent rows or columns of a matrix A. + * % RANK(A,tol) is the number of singular values of A + * % that are larger than tol. + * % RANK(A) uses the default tol = max(size(A)) * norm(A) * eps. + * + * % Copyright 1984-2002 The MathWorks, Inc. + * % $Revision: 5.11 $ $Date: 2002/04/08 23:51:52 $ + * + * s = svd(A); + */ + mlfAssign(&s, mlfSvd(NULL, NULL, mclVa(A, "A"), NULL)); + /* + * if nargin==1 + */ + if (nargin_ == 1) { + /* + * tol = max(size(A)') * max(s) * eps; + */ + mlfAssign( + &tol, + mclMtimes( + mclMtimes( + mlfMax( + NULL, + mlfCtranspose( + mlfSize(mclValueVarargout(), mclVa(A, "A"), NULL)), + NULL, + NULL), + mlfMax(NULL, mclVv(s, "s"), NULL, NULL)), + _mxarray0_)); + /* + * end + */ + } + /* + * r = sum(s > tol); + */ + mlfAssign(&r, mlfSum(mclGt(mclVv(s, "s"), mclVa(tol, "tol")), NULL)); + mclValidateOutput(r, 1, nargout_, "r", "my_rank"); + mxDestroyArray(s); + mxDestroyArray(tol); + mxDestroyArray(A); + mclSetCurrentLocalFunctionTable(save_local_function_table_); + return r; +} diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build2/my_rank.h" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build2/my_rank.h" index 6df30d206ac47f9e4552e7cf4ea1b6d80800097d..5d4282239d7fb8dfb2fb0b699f142bb429d67805 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build2/my_rank.h" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build2/my_rank.h" @@ -1,3 +1,35 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:dd8bac85dfacfcc9ad33b76e78bc874e5bd87d80274b0bc40b777baf5fe363e5 -size 889 +/* + * MATLAB Compiler: 3.0 + * Date: Sat Sep 04 22:04:33 2004 + * Arguments: "-B" "macro_default" "-O" "all" "-O" "fold_scalar_mxarrays:on" + * "-O" "fold_non_scalar_mxarrays:on" "-O" "optimize_integer_for_loops:on" "-O" + * "array_indexing:on" "-O" "optimize_conditionals:on" "-m" "-W" "main" "-L" + * "C" "-t" "-T" "link:exe" "-h" "libmmfile.mlib" "main.m" "my_rank.m" + * "mrank.m" + */ + +#ifndef MLF_V2 +#define MLF_V2 1 +#endif + +#ifndef __my_rank_h +#define __my_rank_h 1 + +#ifdef __cplusplus +extern "C" { +#endif + +#include "libmatlb.h" + +extern void InitializeModule_my_rank(void); +extern void TerminateModule_my_rank(void); +extern _mexLocalFunctionTable _local_function_table_my_rank; + +extern mxArray * mlfMy_rank(mxArray * A, mxArray * tol); +extern void mlxMy_rank(int nlhs, mxArray * plhs[], int nrhs, mxArray * prhs[]); + +#ifdef __cplusplus +} +#endif + +#endif diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build2/my_rank.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build2/my_rank.m" index 564508b77efb3dcc01768435f62b04cb857059d7..b262454d53697fd403dc10c2b3aab628e94774d4 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build2/my_rank.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/m_build2/my_rank.m" @@ -1,3 +1,16 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:70accc275d0f3f67f67d4a1768830ead385ffa9a416a96b4595412d2ba09676a -size 503 +function r = my_rank(A,tol) +%RANK Matrix rank. +% RANK(A) provides an estimate of the number of linearly +% independent rows or columns of a matrix A. +% RANK(A,tol) is the number of singular values of A +% that are larger than tol. +% RANK(A) uses the default tol = max(size(A)) * norm(A) * eps. + +% Copyright 1984-2002 The MathWorks, Inc. +% $Revision: 5.11 $ $Date: 2002/04/08 23:51:52 $ + +s = svd(A); +if nargin==1 + tol = max(size(A)') * max(s) * eps; +end +r = sum(s > tol); \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/squaren/gasket.c" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/squaren/gasket.c" index f8ca4157e507d4dc57c69631101c0a068626fb11..946ad9107831cf00fcea2586f38243a8e41ebe99 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/squaren/gasket.c" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/squaren/gasket.c" @@ -1,3 +1,192 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3c67b809c11c96d24ba408eac74602f3bd4563ed4a3e955d8d3f7949d917bde3 -size 6539 +/* + * MATLAB Compiler: 3.0 + * Date: Sat Sep 04 16:28:02 2004 + * Arguments: "-B" "macro_default" "-O" "all" "-O" "fold_scalar_mxarrays:on" + * "-O" "fold_non_scalar_mxarrays:on" "-O" "optimize_integer_for_loops:on" "-O" + * "array_indexing:on" "-O" "optimize_conditionals:on" "-x" "-W" "mex" "-L" "C" + * "-t" "-T" "link:mexlibrary" "libmatlbmx.mlib" "gasket" + */ +#include "gasket.h" +#include "libmatlbm.h" +static mxArray * _mxarray0_; + +static double _array2_[6] = { 866.0, 1.0, 866.0, 1.0, 500.0, 1000.0 }; +static mxArray * _mxarray1_; + +static double _array4_[2] = { 866.0, 1.0 }; +static mxArray * _mxarray3_; +static mxArray * _mxarray5_; +static mxArray * _mxarray6_; +static mxArray * _mxarray7_; +static mxArray * _mxarray8_; + +void InitializeModule_gasket(void) { + _mxarray0_ = mclInitializeDouble(1000.0); + _mxarray1_ = mclInitializeDoubleVector(3, 2, _array2_); + _mxarray3_ = mclInitializeDoubleVector(1, 2, _array4_); + _mxarray5_ = mclInitializeDouble(1.0); + _mxarray6_ = mclInitializeDouble(3.0); + _mxarray7_ = mclInitializeDoubleVector(0, 0, (double *)NULL); + _mxarray8_ = mclInitializeDouble(2.0); +} + +void TerminateModule_gasket(void) { + mxDestroyArray(_mxarray8_); + mxDestroyArray(_mxarray7_); + mxDestroyArray(_mxarray6_); + mxDestroyArray(_mxarray5_); + mxDestroyArray(_mxarray3_); + mxDestroyArray(_mxarray1_); + mxDestroyArray(_mxarray0_); +} + +static mxArray * Mgasket(int nargout_, mxArray * numPoints); + +_mexLocalFunctionTable _local_function_table_gasket + = { 0, (mexFunctionTableEntry *)NULL }; + +/* + * The function "mlfGasket" contains the normal interface for the "gasket" + * M-function from file "d:\work\squaren\gasket.m" (lines 1-10). This function + * processes any input arguments and passes them to the implementation version + * of the function, appearing above. + */ +mxArray * mlfGasket(mxArray * numPoints) { + int nargout = 1; + mxArray * theImage = NULL; + mlfEnterNewContext(0, 1, numPoints); + theImage = Mgasket(nargout, numPoints); + mlfRestorePreviousContext(0, 1, numPoints); + return mlfReturnValue(theImage); +} + +/* + * The function "mlxGasket" contains the feval interface for the "gasket" + * M-function from file "d:\work\squaren\gasket.m" (lines 1-10). The feval + * function calls the implementation version of gasket through this function. + * This function processes any input arguments and passes them to the + * implementation version of the function, appearing above. + */ +void mlxGasket(int nlhs, mxArray * plhs[], int nrhs, mxArray * prhs[]) { + mxArray * mprhs[1]; + mxArray * mplhs[1]; + int i; + if (nlhs > 1) { + mlfError( + mxCreateString( + "Run-time Error: File: gasket Line: 1 Column: " + "1 The function \"gasket\" was called with mor" + "e than the declared number of outputs (1)."), + NULL); + } + if (nrhs > 1) { + mlfError( + mxCreateString( + "Run-time Error: File: gasket Line: 1 Column: " + "1 The function \"gasket\" was called with mor" + "e than the declared number of inputs (1)."), + NULL); + } + for (i = 0; i < 1; ++i) { + mplhs[i] = NULL; + } + for (i = 0; i < 1 && i < nrhs; ++i) { + mprhs[i] = prhs[i]; + } + for (; i < 1; ++i) { + mprhs[i] = NULL; + } + mlfEnterNewContext(0, 1, mprhs[0]); + mplhs[0] = Mgasket(nlhs, mprhs[0]); + mlfRestorePreviousContext(0, 1, mprhs[0]); + plhs[0] = mplhs[0]; +} + +/* + * The function "Mgasket" is the implementation version of the "gasket" + * M-function from file "d:\work\squaren\gasket.m" (lines 1-10). It contains + * the actual compiled code for that M-function. It is a static function and + * must only be called from one of the interface functions, appearing below. + */ +/* + * function theImage=gasket(numPoints) + */ +static mxArray * Mgasket(int nargout_, mxArray * numPoints) { + mexLocalFunctionTable save_local_function_table_ + = mclSetCurrentLocalFunctionTable(&_local_function_table_gasket); + mxArray * theImage = NULL; + mxArray * i = NULL; + mxArray * theRand = NULL; + mxArray * startPoint = NULL; + mxArray * corners = NULL; + mclCopyArray(&numPoints); + /* + * theImage =zeros(1000,1000); + */ + mlfAssign(&theImage, mlfZeros(_mxarray0_, _mxarray0_, NULL)); + /* + * corners=[866 1;1 500;866 1000]; + */ + mlfAssign(&corners, _mxarray1_); + /* + * startPoint=[866 1]; + */ + mlfAssign(&startPoint, _mxarray3_); + /* + * theRand=rand(numPoints,1); + */ + mlfAssign( + &theRand, mlfNRand(1, mclVa(numPoints, "numPoints"), _mxarray5_, NULL)); + /* + * theRand=ceil(theRand*3); + */ + mlfAssign( + &theRand, mlfCeil(mclMtimes(mclVv(theRand, "theRand"), _mxarray6_))); + /* + * for i=1:numPoints + */ + { + int v_ = mclForIntStart(1); + int e_ = mclForIntEnd(mclVa(numPoints, "numPoints")); + if (v_ > e_) { + mlfAssign(&i, _mxarray7_); + } else { + /* + * startPoint=floor((corners(theRand(i),:)+startPoint)/2); + * theImage(startPoint(1),startPoint(2))=1; + * end + */ + for (; ; ) { + mlfAssign( + &startPoint, + mlfFloor( + mclMrdivide( + mclPlus( + mclArrayRef2( + mclVv(corners, "corners"), + mclIntArrayRef1(mclVv(theRand, "theRand"), v_), + mlfCreateColonIndex()), + mclVv(startPoint, "startPoint")), + _mxarray8_))); + mclArrayAssign2( + &theImage, + _mxarray5_, + mclIntArrayRef1(mclVv(startPoint, "startPoint"), 1), + mclIntArrayRef1(mclVv(startPoint, "startPoint"), 2)); + if (v_ == e_) { + break; + } + ++v_; + } + mlfAssign(&i, mlfScalar(v_)); + } + } + mclValidateOutput(theImage, 1, nargout_, "theImage", "gasket"); + mxDestroyArray(corners); + mxDestroyArray(startPoint); + mxDestroyArray(theRand); + mxDestroyArray(i); + mxDestroyArray(numPoints); + mclSetCurrentLocalFunctionTable(save_local_function_table_); + return theImage; +} diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/squaren/gasket.cpp" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/squaren/gasket.cpp" index e6485575ba7519212f3739fef672ab489aaa82e3..04785560406f6f890e37add36fd771a2cc4ab918 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/squaren/gasket.cpp" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/squaren/gasket.cpp" @@ -1,3 +1,165 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2f2f135db4a4d1bc6387863dbd38b2d9289d3c4b9900032e8a75685161b33fc0 -size 5681 +// +// MATLAB Compiler: 3.0 +// Date: Sat Sep 04 16:38:32 2004 +// Arguments: "-B" "macro_default" "-O" "all" "-O" "fold_scalar_mxarrays:on" +// "-O" "fold_non_scalar_mxarrays:on" "-O" "optimize_integer_for_loops:on" "-O" +// "array_indexing:on" "-O" "optimize_conditionals:on" "-p" "-W" "main" "-L" +// "Cpp" "-t" "-T" "link:exe" "-h" "libmmfile.mlib" "gasket.m" +// +#include "gasket.hpp" +#include "libmatlbm.hpp" +static mwArray _mxarray0_ = mclInitializeDouble(1000.0); + +static double _array2_[6] = { 866.0, 1.0, 866.0, 1.0, 500.0, 1000.0 }; +static mwArray _mxarray1_ = mclInitializeDoubleVector(3, 2, _array2_); + +static double _array4_[2] = { 866.0, 1.0 }; +static mwArray _mxarray3_ = mclInitializeDoubleVector(1, 2, _array4_); +static mwArray _mxarray5_ = mclInitializeDouble(1.0); +static mwArray _mxarray6_ = mclInitializeDouble(3.0); +static mwArray _mxarray7_ = mclInitializeDoubleVector(0, 0, (double *)NULL); +static mwArray _mxarray8_ = mclInitializeDouble(2.0); + +void InitializeModule_gasket() { +} + +void TerminateModule_gasket() { +} + +static mwArray Mgasket(int nargout_, mwArray numPoints); + +_mexLocalFunctionTable _local_function_table_gasket + = { 0, (mexFunctionTableEntry *)NULL }; + +// +// The function "gasket" contains the normal interface for the "gasket" +// M-function from file "d:\work\squaren\gasket.m" (lines 1-10). This function +// processes any input arguments and passes them to the implementation version +// of the function, appearing above. +// +mwArray gasket(mwArray numPoints) { + int nargout = 1; + mwArray theImage = mwArray::UNDEFINED; + theImage = Mgasket(nargout, numPoints); + return theImage; +} + +// +// The function "mlxGasket" contains the feval interface for the "gasket" +// M-function from file "d:\work\squaren\gasket.m" (lines 1-10). The feval +// function calls the implementation version of gasket through this function. +// This function processes any input arguments and passes them to the +// implementation version of the function, appearing above. +// +void mlxGasket(int nlhs, mxArray * plhs[], int nrhs, mxArray * prhs[]) { + MW_BEGIN_MLX(); + { + mwArray mprhs[1]; + mwArray mplhs[1]; + int i; + mclCppUndefineArrays(1, mplhs); + if (nlhs > 1) { + error( + mwVarargin( + mwArray( + "Run-time Error: File: gasket Line: 1 Column: 1" + " The function \"gasket\" was called with more " + "than the declared number of outputs (1)."))); + } + if (nrhs > 1) { + error( + mwVarargin( + mwArray( + "Run-time Error: File: gasket Line: 1 Column: " + "1 The function \"gasket\" was called with mor" + "e than the declared number of inputs (1)."))); + } + for (i = 0; i < 1 && i < nrhs; ++i) { + mprhs[i] = mwArray(prhs[i], 0); + } + for (; i < 1; ++i) { + mprhs[i].MakeDIN(); + } + mplhs[0] = Mgasket(nlhs, mprhs[0]); + plhs[0] = mplhs[0].FreezeData(); + } + MW_END_MLX(); +} + +// +// The function "Mgasket" is the implementation version of the "gasket" +// M-function from file "d:\work\squaren\gasket.m" (lines 1-10). It contains +// the actual compiled code for that M-function. It is a static function and +// must only be called from one of the interface functions, appearing below. +// +// +// function theImage=gasket(numPoints) +// +static mwArray Mgasket(int nargout_, mwArray numPoints) { + mwLocalFunctionTable save_local_function_table_ + = &_local_function_table_gasket; + mwArray theImage = mwArray::UNDEFINED; + mwArray i = mwArray::UNDEFINED; + mwArray theRand = mwArray::UNDEFINED; + mwArray startPoint = mwArray::UNDEFINED; + mwArray corners = mwArray::UNDEFINED; + // + // theImage =zeros(1000,1000); + // + theImage = zeros(mwVarargin(_mxarray0_, _mxarray0_)); + // + // corners=[866 1;1 500;866 1000]; + // + corners = _mxarray1_; + // + // startPoint=[866 1]; + // + startPoint = _mxarray3_; + // + // theRand=rand(numPoints,1); + // + theRand + = Nrand_func(1, mwVarargin(mwVa(numPoints, "numPoints"), _mxarray5_)); + // + // theRand=ceil(theRand*3); + // + theRand = ceil(mwVv(theRand, "theRand") * _mxarray6_); + // + // for i=1:numPoints + // + { + int v_ = mclForIntStart(1); + int e_ = mclForIntEnd(mwVa(numPoints, "numPoints")); + if (v_ > e_) { + i = _mxarray7_; + } else { + // + // startPoint=floor((corners(theRand(i),:)+startPoint)/2); + // theImage(startPoint(1),startPoint(2))=1; + // end + // + for (; ; ) { + startPoint + = floor( + (mclArrayRef( + mwVv(corners, "corners"), + mclIntArrayRef(mwVv(theRand, "theRand"), v_), + colon()) + + mwVv(startPoint, "startPoint")) + / _mxarray8_); + mclArrayAssign( + &theImage, + _mxarray5_, + mclIntArrayRef(mwVv(startPoint, "startPoint"), 1), + mclIntArrayRef(mwVv(startPoint, "startPoint"), 2)); + if (v_ == e_) { + break; + } + ++v_; + } + i = v_; + } + } + mwValidateOutput(theImage, 1, nargout_, "theImage", "gasket"); + return theImage; +} diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/squaren/gasket.dll" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/squaren/gasket.dll" index 3d69ac1147aa946518c2528b9991a98ad78a57de..603f07b5a4151933d6fe7a91f5ed2ebcfe79ee96 100644 Binary files "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/squaren/gasket.dll" and "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/squaren/gasket.dll" differ diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/squaren/gasket.h" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/squaren/gasket.h" index 7f752134bb6b849389ca8b325ce7e301d413076c..f93a9599fe0215a0dda61b491282ab5301649f17 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/squaren/gasket.h" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/squaren/gasket.h" @@ -1,3 +1,34 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d24699fd9b283986f82b0f06f9d0961a363e15ae6af6f1ca4cfc615de82765b7 -size 851 +/* + * MATLAB Compiler: 3.0 + * Date: Sat Sep 04 16:28:02 2004 + * Arguments: "-B" "macro_default" "-O" "all" "-O" "fold_scalar_mxarrays:on" + * "-O" "fold_non_scalar_mxarrays:on" "-O" "optimize_integer_for_loops:on" "-O" + * "array_indexing:on" "-O" "optimize_conditionals:on" "-x" "-W" "mex" "-L" "C" + * "-t" "-T" "link:mexlibrary" "libmatlbmx.mlib" "gasket" + */ + +#ifndef MLF_V2 +#define MLF_V2 1 +#endif + +#ifndef __gasket_h +#define __gasket_h 1 + +#ifdef __cplusplus +extern "C" { +#endif + +#include "libmatlb.h" + +extern void InitializeModule_gasket(void); +extern void TerminateModule_gasket(void); +extern _mexLocalFunctionTable _local_function_table_gasket; + +extern mxArray * mlfGasket(mxArray * numPoints); +extern void mlxGasket(int nlhs, mxArray * plhs[], int nrhs, mxArray * prhs[]); + +#ifdef __cplusplus +} +#endif + +#endif diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/squaren/gasket.hpp" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/squaren/gasket.hpp" index c83a2797060d472333ec2db2687390c93f280217..7b8f9a7728da63c523b885aa3a1fe3bed90bf586 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/squaren/gasket.hpp" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/squaren/gasket.hpp" @@ -1,3 +1,24 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1d421a1bc1109602e259611d60daa909bf3ae07b2a7eb0df0139d17690aa8d55 -size 768 +// +// MATLAB Compiler: 3.0 +// Date: Sat Sep 04 16:38:32 2004 +// Arguments: "-B" "macro_default" "-O" "all" "-O" "fold_scalar_mxarrays:on" +// "-O" "fold_non_scalar_mxarrays:on" "-O" "optimize_integer_for_loops:on" "-O" +// "array_indexing:on" "-O" "optimize_conditionals:on" "-p" "-W" "main" "-L" +// "Cpp" "-t" "-T" "link:exe" "-h" "libmmfile.mlib" "gasket.m" +// +#ifndef __gasket_hpp +#define __gasket_hpp 1 + +#include "libmatlb.hpp" + +extern void InitializeModule_gasket(); +extern void TerminateModule_gasket(); +extern _mexLocalFunctionTable _local_function_table_gasket; + +extern mwArray gasket(mwArray numPoints = mwArray::DIN); +#ifdef __cplusplus +extern "C" +#endif +void mlxGasket(int nlhs, mxArray * plhs[], int nrhs, mxArray * prhs[]); + +#endif diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/squaren/gasket.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/squaren/gasket.m" index c5846921615e06b82d3f53603a68ec0c45a63381..96e04e706188a4f1d4c1adf5ccbfcf16bc0b897f 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/squaren/gasket.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/squaren/gasket.m" @@ -1,3 +1,10 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2faa5abeb836f941e20defc52a9b58cd0609b8130210008b80e80eb1475a838f -size 303 +function theImage=gasket(numPoints) +theImage =zeros(1000,1000); +corners=[866 1;1 500;866 1000]; +startPoint=[866 1]; +theRand=rand(numPoints,1); +theRand=ceil(theRand*3); +for i=1:numPoints + startPoint=floor((corners(theRand(i),:)+startPoint)/2); + theImage(startPoint(1),startPoint(2))=1; +end \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/squaren/gasket_main.cpp" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/squaren/gasket_main.cpp" index c483cd8d3b9d1d906f63bd88ad08971ab28dccca..ac66004e9a2ad8287a35409519c62a0d01c1ac08 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/squaren/gasket_main.cpp" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/squaren/gasket_main.cpp" @@ -1,3 +1,30 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d786f5f1e62c55f5824b1f98ae0f81ce2c88d1931468eb597caa04e8cea71bea -size 1148 +// +// MATLAB Compiler: 3.0 +// Date: Sat Sep 04 16:38:32 2004 +// Arguments: "-B" "macro_default" "-O" "all" "-O" "fold_scalar_mxarrays:on" +// "-O" "fold_non_scalar_mxarrays:on" "-O" "optimize_integer_for_loops:on" "-O" +// "array_indexing:on" "-O" "optimize_conditionals:on" "-p" "-W" "main" "-L" +// "Cpp" "-t" "-T" "link:exe" "-h" "libmmfile.mlib" "gasket.m" +// +#include "libmatlb.hpp" +#include "gasket.hpp" + +extern _mexcpp_information _main_info; + +static mexFunctionTableEntry function_table[1] + = { { "gasket", mlxGasket, 1, 1, &_local_function_table_gasket } }; + +static _mexcppInitTermTableEntry init_term_table[1] + = { { InitializeModule_gasket, TerminateModule_gasket } }; + +_mexcpp_information _main_info + = { 1, 1, function_table, 0, NULL, 0, NULL, 1, init_term_table }; + +// +// The function "main" is a Compiler-generated main wrapper, suitable for +// building a stand-alone application. It calls a library function to perform +// initialization, call the main function, and perform library termination. +// +int main(int argc, const char * * argv) { + return mwMain(argc, argv, mlxGasket, 1, &_main_info); +} diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/squaren/gasket_mex.c" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/squaren/gasket_mex.c" index 87eaf92d2e4249b62bb1e16223e9b9be8f9efb34..28b14cf78001793be6cec0f9a94a41a9d44b152b 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/squaren/gasket_mex.c" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/squaren/gasket_mex.c" @@ -1,3 +1,37 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f733c0b7e222b02231c60ce39f0c453e697bcdc28c8cb81b8a16929375e95e43 -size 1233 +/* + * MATLAB Compiler: 3.0 + * Date: Sat Sep 04 16:28:02 2004 + * Arguments: "-B" "macro_default" "-O" "all" "-O" "fold_scalar_mxarrays:on" + * "-O" "fold_non_scalar_mxarrays:on" "-O" "optimize_integer_for_loops:on" "-O" + * "array_indexing:on" "-O" "optimize_conditionals:on" "-x" "-W" "mex" "-L" "C" + * "-t" "-T" "link:mexlibrary" "libmatlbmx.mlib" "gasket" + */ + +#ifndef MLF_V2 +#define MLF_V2 1 +#endif + +#include "libmatlb.h" +#include "gasket.h" + +extern _mex_information _mex_info; + +static mexFunctionTableEntry function_table[1] + = { { "gasket", mlxGasket, 1, 1, &_local_function_table_gasket } }; + +static _mexInitTermTableEntry init_term_table[1] + = { { InitializeModule_gasket, TerminateModule_gasket } }; + +/* + * The function "mexLibrary" is a Compiler-generated mex wrapper, suitable for + * building a MEX-function. It initializes any persistent variables as well as + * a function table for use by the feval function. It then calls the function + * "mlxGasket". Finally, it clears the feval table and exits. + */ +mex_information mexLibrary(void) { + mclMexLibraryInit(); + return &_mex_info; +} + +_mex_information _mex_info + = { 1, 1, function_table, 0, NULL, 0, NULL, 1, init_term_table }; diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/squaren/squaren.c" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/squaren/squaren.c" index e9c8114ed3e66b9c4f28f00acee7ec81a356dbb5..50e3a4d19d503b9acecba641b7c8e31117b56ac7 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/squaren/squaren.c" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/squaren/squaren.c" @@ -1,3 +1,19 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5baaa54c476415870680763ce23af4fbf22983e8b52b824616adeda17653ca4d -size 707 +#include "mex.h" +#include +void squarenumber(double y[],double x[]) +{ + y[0]=x[0]*x[0]; + return; +} +void mexFunction(int nlhs,mxArray *plhs[],int nrhs,const mxArray *prhs[]) +{ + double *y; + double *x; + unsigned int m,n; + m=mxGetM(prhs[0]); + n=mxGetN(prhs[0]); + plhs[0]=mxCreateDoubleMatrix(m,n,mxREAL);//mxCreateFull??? + y=mxGetPr(plhs[0]); + x=mxGetPr(prhs[0]); + squarenumber(y,x); +} \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/squaren/squaren.dll" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/squaren/squaren.dll" index 688abaa57352c4f5d715c31d34606a3938f8bc8c..fb22bddf849d9550caa8a42609f120ed3f187c84 100644 Binary files "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/squaren/squaren.dll" and "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/squaren/squaren.dll" differ diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/test/axis.h" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/test/axis.h" index e7502b37b5fcf8197e0574241a0dd1de3fe121af..a8647ce1976da4ad68b7f688375cbf3eb013eec5 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/test/axis.h" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/test/axis.h" @@ -1,3 +1,36 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5cba76760b6b8aa50b98cb454a46d7e12fa1c9361dbf53e9a1ca09180f84e07f -size 1005 +/* + * MATLAB Compiler: 3.0 + * Date: Fri Sep 03 08:56:52 2004 + * Arguments: "-B" "macro_default" "-O" "all" "-O" "fold_scalar_mxarrays:on" + * "-O" "fold_non_scalar_mxarrays:on" "-O" "optimize_integer_for_loops:on" "-O" + * "array_indexing:on" "-O" "optimize_conditionals:on" "-x" "-W" "mex" "-L" "C" + * "-t" "-T" "link:mexlibrary" "libmatlbmx.mlib" "sjbh1" + */ + +#ifndef MLF_V2 +#define MLF_V2 1 +#endif + +#ifndef __axis_h +#define __axis_h 1 + +#ifdef __cplusplus +extern "C" { +#endif + +#include "libmatlb.h" + +extern void InitializeModule_axis(void); +extern void TerminateModule_axis(void); +extern _mexLocalFunctionTable _local_function_table_axis; + +extern mxArray * mlfNAxis(int nargout, mxArray * * ans2, mxArray * * ans3, ...); +extern mxArray * mlfAxis(mxArray * * ans2, mxArray * * ans3, ...); +extern void mlfVAxis(mxArray * synthetic_varargin_argument, ...); +extern void mlxAxis(int nlhs, mxArray * plhs[], int nrhs, mxArray * prhs[]); + +#ifdef __cplusplus +} +#endif + +#endif diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/test/grid.h" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/test/grid.h" index 5687897e89fce41c9779235e7c78b0ff6cee4ac0..5a28cc7f4559e31970a40f30aec0b9c4d6c1831e 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/test/grid.h" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/test/grid.h" @@ -1,3 +1,34 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:96fe5cf4953ec1327e05becf9cec95f3844d63d9c06d89cdde4a290ff3078ec0 -size 842 +/* + * MATLAB Compiler: 3.0 + * Date: Fri Sep 03 08:56:52 2004 + * Arguments: "-B" "macro_default" "-O" "all" "-O" "fold_scalar_mxarrays:on" + * "-O" "fold_non_scalar_mxarrays:on" "-O" "optimize_integer_for_loops:on" "-O" + * "array_indexing:on" "-O" "optimize_conditionals:on" "-x" "-W" "mex" "-L" "C" + * "-t" "-T" "link:mexlibrary" "libmatlbmx.mlib" "sjbh1" + */ + +#ifndef MLF_V2 +#define MLF_V2 1 +#endif + +#ifndef __grid_h +#define __grid_h 1 + +#ifdef __cplusplus +extern "C" { +#endif + +#include "libmatlb.h" + +extern void InitializeModule_grid(void); +extern void TerminateModule_grid(void); +extern _mexLocalFunctionTable _local_function_table_grid; + +extern void mlfGrid(mxArray * arg1, mxArray * arg2); +extern void mlxGrid(int nlhs, mxArray * plhs[], int nrhs, mxArray * prhs[]); + +#ifdef __cplusplus +} +#endif + +#endif diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/test/legend.h" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/test/legend.h" index db867a2cffd657932694da4cd9bb5d38da89c285..023415696b7622ae655b8f4f745f8528aea3bad1 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/test/legend.h" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/test/legend.h" @@ -1,3 +1,43 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3b0470c48b9f8d03f14dccc5ab0dd65a728042701e61552002da42cfc5a61029 -size 1275 +/* + * MATLAB Compiler: 3.0 + * Date: Fri Sep 03 08:56:52 2004 + * Arguments: "-B" "macro_default" "-O" "all" "-O" "fold_scalar_mxarrays:on" + * "-O" "fold_non_scalar_mxarrays:on" "-O" "optimize_integer_for_loops:on" "-O" + * "array_indexing:on" "-O" "optimize_conditionals:on" "-x" "-W" "mex" "-L" "C" + * "-t" "-T" "link:mexlibrary" "libmatlbmx.mlib" "sjbh1" + */ + +#ifndef MLF_V2 +#define MLF_V2 1 +#endif + +#ifndef __legend_h +#define __legend_h 1 + +#ifdef __cplusplus +extern "C" { +#endif + +#include "libmatlb.h" + +extern void InitializeModule_legend(void); +extern void TerminateModule_legend(void); +extern _mexLocalFunctionTable _local_function_table_legend; + +extern mxArray * mlfNLegend(int nargout, + mxArray * * labelhandles, + mxArray * * outH, + mxArray * * outM, + ...); +extern mxArray * mlfLegend(mxArray * * labelhandles, + mxArray * * outH, + mxArray * * outM, + ...); +extern void mlfVLegend(mxArray * synthetic_varargin_argument, ...); +extern void mlxLegend(int nlhs, mxArray * plhs[], int nrhs, mxArray * prhs[]); + +#ifdef __cplusplus +} +#endif + +#endif diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/test/sjbh.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/test/sjbh.m" index 471f03380b8325bfda10496c752354cf85ebf887..c4fd83cea9f0d508ea35acb2425b58f0e3536d89 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/test/sjbh.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/test/sjbh.m" @@ -1,3 +1,67 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a20019b7c63cd2b24e4a0cdcf84a39320a7c33c751c04648e818fda2427f289d -size 1359 +%sjbh.m +%function sjbh1(m) +x=-1:0.01:10; +y1=sin(x); +plot(x,y1) +axis([-1 10 -2 2]) +grid +legend('sin(x)') +pause(2) +legend off +legend('将y=sin(x)的横坐标收缩至原来的1/2') +%hold on +%theax=axis; +pause +%y=sinx->y=sin(wx) +h=line('Color',[1 1 0],'Marker','.','MarkerSize',4,'EraseMode','xor'); +w=1:0.05:2; +y2=zeros(1101,21); +for i=1:21 + y2(:,i)=sin(w(i)*x'); + set(h,'xdata',x,'ydata',y2(:,i)); + drawnow; + pause(0.0005) + i=i+1; + %axis=theax; +end +legend off +legend('sin(2x)') +pause(2) +legend('将y=sin(2x)向左平移pi/6') +%hold on +pause +%y=sin(wx)->y=sin(wx+pi/3) +h=line('Color',[1 0 1],'Marker','.','MarkerSize',4,'EraseMode','Xor'); +w1=2; +y3=zeros(1101,20); +for i=1:20 + y3(:,i)=sin(w1*x'+i*pi/60); + set(h,'xdata',x,'ydata',y3(:,i)); + drawnow; + pause(0.0005) + i=i+1; + %axis=theax; +end +legend off +legend('sin(2x+pi/3)') +pause(2) +legend('将y=sin(2x)向左平移pi/6') +%y=sin(wx+pi/3)->y=2sin(wx+pi/3) +pause +%y=sin(wx)->y=sin(wx+pi/3) +h=line('Color',[1 0 1],'Marker','.','MarkerSize',5,'EraseMode','Xor'); +w3=1:0.05:2; +y4=zeros(1101,21); +for i=1:21 + y4(:,i)=w3(i)*sin(w1*x'+pi/3); + set(h,'xdata',x,'ydata',y4(:,i)); + drawnow; + %pause(0.0005) + i=i+1; + %axis=theax; +end +legend off +legend('2sin(2x+pi/3)') +legend off +%pause(2) +%legend('将y=sin(2x)向左平移pi/6') \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/test/sjbh1.c" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/test/sjbh1.c" index 16d55229fbaa3963cf53d909d7f75a3cc03fb925..5a818025cb0700fe64ef3ab78cd495f35dd2b676 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/test/sjbh1.c" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/test/sjbh1.c" @@ -1,3 +1,593 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:81a7220891a0e2f65942701633b81b69357fbcfd2ba5edfdbefe0ff7ae3b7cd0 -size 18360 +/* + * MATLAB Compiler: 3.0 + * Date: Fri Sep 03 08:56:51 2004 + * Arguments: "-B" "macro_default" "-O" "all" "-O" "fold_scalar_mxarrays:on" + * "-O" "fold_non_scalar_mxarrays:on" "-O" "optimize_integer_for_loops:on" "-O" + * "array_indexing:on" "-O" "optimize_conditionals:on" "-x" "-W" "mex" "-L" "C" + * "-t" "-T" "link:mexlibrary" "libmatlbmx.mlib" "sjbh1" + */ +#include "sjbh1.h" +#include "axis.h" +#include "grid.h" +#include "legend.h" +#include "libmatlbm.h" +static mxArray * _mxarray0_; +static mxArray * _mxarray1_; +static mxArray * _mxarray2_; + +static double _array4_[4] = { -1.0, 10.0, -2.0, 2.0 }; +static mxArray * _mxarray3_; + +static mxChar _array6_[6] = { 's', 'i', 'n', '(', 'x', ')' }; +static mxArray * _mxarray5_; +static mxArray * _mxarray7_; + +static mxChar _array9_[3] = { 'o', 'f', 'f' }; +static mxArray * _mxarray8_; + +static mxChar _array11_[22] = { 0xbdab, 'y', '=', 's', 'i', 'n', '(', 'x', ')', + 0xb5c4, 0xbae1, 0xd7f8, 0xb1ea, 0xcad5, 0xcbf5, + 0xd6c1, 0xd4ad, 0xc0b4, 0xb5c4, '1', '/', '2' }; +static mxArray * _mxarray10_; + +static mxChar _array13_[5] = { 'C', 'o', 'l', 'o', 'r' }; +static mxArray * _mxarray12_; + +static double _array15_[3] = { 1.0, 1.0, 0.0 }; +static mxArray * _mxarray14_; + +static mxChar _array17_[6] = { 'M', 'a', 'r', 'k', 'e', 'r' }; +static mxArray * _mxarray16_; + +static mxChar _array19_[1] = { '.' }; +static mxArray * _mxarray18_; + +static mxChar _array21_[10] = { 'M', 'a', 'r', 'k', 'e', + 'r', 'S', 'i', 'z', 'e' }; +static mxArray * _mxarray20_; +static mxArray * _mxarray22_; + +static mxChar _array24_[9] = { 'E', 'r', 'a', 's', 'e', 'M', 'o', 'd', 'e' }; +static mxArray * _mxarray23_; + +static mxChar _array26_[3] = { 'x', 'o', 'r' }; +static mxArray * _mxarray25_; + +static double _array28_[21] = { 1.0, 1.05, 1.1, 1.15, 1.2, 1.25, 1.3, + 1.35, 1.4, 1.45, 1.5, 1.55, 1.6, 1.65, + 1.7, 1.75, 1.8, 1.85, 1.9, 1.95, 2.0 }; +static mxArray * _mxarray27_; +static mxArray * _mxarray29_; +static mxArray * _mxarray30_; +static mxArray * _mxarray31_; + +static mxChar _array33_[5] = { 'x', 'd', 'a', 't', 'a' }; +static mxArray * _mxarray32_; + +static mxChar _array35_[5] = { 'y', 'd', 'a', 't', 'a' }; +static mxArray * _mxarray34_; +static mxArray * _mxarray36_; +static mxArray * _mxarray37_; + +static mxChar _array39_[7] = { 's', 'i', 'n', '(', '2', 'x', ')' }; +static mxArray * _mxarray38_; + +static mxChar _array41_[18] = { 0xbdab, 'y', '=', 's', 'i', 'n', '(', + '2', 'x', ')', 0xcff2, 0xd7f3, + 0xc6bd, 0xd2c6, 'p', 'i', '/', '6' }; +static mxArray * _mxarray40_; + +static double _array43_[3] = { 1.0, 0.0, 1.0 }; +static mxArray * _mxarray42_; + +static mxChar _array45_[3] = { 'X', 'o', 'r' }; +static mxArray * _mxarray44_; +static mxArray * _mxarray46_; +static mxArray * _mxarray47_; +static mxArray * _mxarray48_; + +static mxChar _array50_[12] = { 's', 'i', 'n', '(', '2', 'x', + '+', 'p', 'i', '/', '3', ')' }; +static mxArray * _mxarray49_; +static mxArray * _mxarray51_; +static mxArray * _mxarray52_; + +static mxChar _array54_[13] = { '2', 's', 'i', 'n', '(', '2', 'x', + '+', 'p', 'i', '/', '3', ')' }; +static mxArray * _mxarray53_; + +void InitializeModule_sjbh1(void) { + _mxarray0_ = mclInitializeDouble(-1.0); + _mxarray1_ = mclInitializeDouble(.01); + _mxarray2_ = mclInitializeDouble(10.0); + _mxarray3_ = mclInitializeDoubleVector(1, 4, _array4_); + _mxarray5_ = mclInitializeString(6, _array6_); + _mxarray7_ = mclInitializeDouble(2.0); + _mxarray8_ = mclInitializeString(3, _array9_); + _mxarray10_ = mclInitializeString(22, _array11_); + _mxarray12_ = mclInitializeString(5, _array13_); + _mxarray14_ = mclInitializeDoubleVector(1, 3, _array15_); + _mxarray16_ = mclInitializeString(6, _array17_); + _mxarray18_ = mclInitializeString(1, _array19_); + _mxarray20_ = mclInitializeString(10, _array21_); + _mxarray22_ = mclInitializeDouble(4.0); + _mxarray23_ = mclInitializeString(9, _array24_); + _mxarray25_ = mclInitializeString(3, _array26_); + _mxarray27_ = mclInitializeDoubleVector(1, 21, _array28_); + _mxarray29_ = mclInitializeDouble(1101.0); + _mxarray30_ = mclInitializeDouble(21.0); + _mxarray31_ = mclInitializeDoubleVector(0, 0, (double *)NULL); + _mxarray32_ = mclInitializeString(5, _array33_); + _mxarray34_ = mclInitializeString(5, _array35_); + _mxarray36_ = mclInitializeDouble(.0005); + _mxarray37_ = mclInitializeDouble(1.0); + _mxarray38_ = mclInitializeString(7, _array39_); + _mxarray40_ = mclInitializeString(18, _array41_); + _mxarray42_ = mclInitializeDoubleVector(1, 3, _array43_); + _mxarray44_ = mclInitializeString(3, _array45_); + _mxarray46_ = mclInitializeDouble(20.0); + _mxarray47_ = mclInitializeDouble(3.141592653589793); + _mxarray48_ = mclInitializeDouble(60.0); + _mxarray49_ = mclInitializeString(12, _array50_); + _mxarray51_ = mclInitializeDouble(5.0); + _mxarray52_ = mclInitializeDouble(1.0471975511965976); + _mxarray53_ = mclInitializeString(13, _array54_); +} + +void TerminateModule_sjbh1(void) { + mxDestroyArray(_mxarray53_); + mxDestroyArray(_mxarray52_); + mxDestroyArray(_mxarray51_); + mxDestroyArray(_mxarray49_); + mxDestroyArray(_mxarray48_); + mxDestroyArray(_mxarray47_); + mxDestroyArray(_mxarray46_); + mxDestroyArray(_mxarray44_); + mxDestroyArray(_mxarray42_); + mxDestroyArray(_mxarray40_); + mxDestroyArray(_mxarray38_); + mxDestroyArray(_mxarray37_); + mxDestroyArray(_mxarray36_); + mxDestroyArray(_mxarray34_); + mxDestroyArray(_mxarray32_); + mxDestroyArray(_mxarray31_); + mxDestroyArray(_mxarray30_); + mxDestroyArray(_mxarray29_); + mxDestroyArray(_mxarray27_); + mxDestroyArray(_mxarray25_); + mxDestroyArray(_mxarray23_); + mxDestroyArray(_mxarray22_); + mxDestroyArray(_mxarray20_); + mxDestroyArray(_mxarray18_); + mxDestroyArray(_mxarray16_); + mxDestroyArray(_mxarray14_); + mxDestroyArray(_mxarray12_); + mxDestroyArray(_mxarray10_); + mxDestroyArray(_mxarray8_); + mxDestroyArray(_mxarray7_); + mxDestroyArray(_mxarray5_); + mxDestroyArray(_mxarray3_); + mxDestroyArray(_mxarray2_); + mxDestroyArray(_mxarray1_); + mxDestroyArray(_mxarray0_); +} + +static void Msjbh1(mxArray * m); + +_mexLocalFunctionTable _local_function_table_sjbh1 + = { 0, (mexFunctionTableEntry *)NULL }; + +/* + * The function "mlfSjbh1" contains the normal interface for the "sjbh1" + * M-function from file "d:\matlab6p5p1\work\test\sjbh1.m" (lines 1-67). This + * function processes any input arguments and passes them to the implementation + * version of the function, appearing above. + */ +void mlfSjbh1(mxArray * m) { + mlfEnterNewContext(0, 1, m); + Msjbh1(m); + mlfRestorePreviousContext(0, 1, m); +} + +/* + * The function "mlxSjbh1" contains the feval interface for the "sjbh1" + * M-function from file "d:\matlab6p5p1\work\test\sjbh1.m" (lines 1-67). The + * feval function calls the implementation version of sjbh1 through this + * function. This function processes any input arguments and passes them to the + * implementation version of the function, appearing above. + */ +void mlxSjbh1(int nlhs, mxArray * plhs[], int nrhs, mxArray * prhs[]) { + mxArray * mprhs[1]; + int i; + if (nlhs > 0) { + mlfError( + mxCreateString( + "Run-time Error: File: sjbh1 Line: 2 Column: 1 The function \"sjbh1" + "\" was called with more than the declared number of outputs (0)."), + NULL); + } + if (nrhs > 1) { + mlfError( + mxCreateString( + "Run-time Error: File: sjbh1 Line: 2 Column: 1 The function \"sjbh1" + "\" was called with more than the declared number of inputs (1)."), + NULL); + } + for (i = 0; i < 1 && i < nrhs; ++i) { + mprhs[i] = prhs[i]; + } + for (; i < 1; ++i) { + mprhs[i] = NULL; + } + mlfEnterNewContext(0, 1, mprhs[0]); + Msjbh1(mprhs[0]); + mlfRestorePreviousContext(0, 1, mprhs[0]); +} + +/* + * The function "Msjbh1" is the implementation version of the "sjbh1" + * M-function from file "d:\matlab6p5p1\work\test\sjbh1.m" (lines 1-67). It + * contains the actual compiled code for that M-function. It is a static + * function and must only be called from one of the interface functions, + * appearing below. + */ +/* + * %sjbh.m + * function sjbh1(m) + */ +static void Msjbh1(mxArray * m) { + mexLocalFunctionTable save_local_function_table_ + = mclSetCurrentLocalFunctionTable(&_local_function_table_sjbh1); + mxArray * y4 = NULL; + mxArray * w3 = NULL; + mxArray * y3 = NULL; + mxArray * w1 = NULL; + mxArray * i = NULL; + mxArray * y2 = NULL; + mxArray * w = NULL; + mxArray * h = NULL; + mxArray * ans = NULL; + mxArray * y1 = NULL; + mxArray * x = NULL; + mclCopyArray(&m); + /* + * x=-1:0.01:10; + */ + mlfAssign(&x, mlfColon(_mxarray0_, _mxarray1_, _mxarray2_)); + /* + * y1=sin(x); + */ + mlfAssign(&y1, mlfSin(mclVv(x, "x"))); + /* + * plot(x,y1) + */ + mclPrintAns(&ans, mlfNPlot(0, mclVv(x, "x"), mclVv(y1, "y1"), NULL)); + /* + * axis([-1 10 -2 2]) + */ + mclPrintAns(&ans, mlfNAxis(0, NULL, NULL, _mxarray3_, NULL)); + /* + * grid + */ + mlfGrid(NULL, NULL); + /* + * legend('sin(x)') + */ + mclPrintAns(&ans, mlfNLegend(0, NULL, NULL, NULL, _mxarray5_, NULL)); + /* + * pause(2) + */ + mlfPause(_mxarray7_); + /* + * legend off + */ + mclPrintAns(&ans, mlfNLegend(0, NULL, NULL, NULL, _mxarray8_, NULL)); + /* + * legend('将y=sin(x)的横坐标收缩至原来的1/2') + */ + mclPrintAns(&ans, mlfNLegend(0, NULL, NULL, NULL, _mxarray10_, NULL)); + /* + * %hold on + * %theax=axis; + * pause + */ + mlfPause(NULL); + /* + * %y=sinx->y=sin(wx) + * h=line('Color',[1 1 0],'Marker','.','MarkerSize',4,'EraseMode','xor'); + */ + mlfAssign( + &h, + mlfNLine( + 1, + _mxarray12_, + _mxarray14_, + _mxarray16_, + _mxarray18_, + _mxarray20_, + _mxarray22_, + _mxarray23_, + _mxarray25_, + NULL)); + /* + * w=1:0.05:2; + */ + mlfAssign(&w, _mxarray27_); + /* + * y2=zeros(1101,21); + */ + mlfAssign(&y2, mlfZeros(_mxarray29_, _mxarray30_, NULL)); + /* + * for i=1:21 + */ + { + int v_ = mclForIntStart(1); + int e_ = 21; + if (v_ > e_) { + mlfAssign(&i, _mxarray31_); + } else { + /* + * y2(:,i)=sin(w(i)*x'); + * set(h,'xdata',x,'ydata',y2(:,i)); + * drawnow; + * pause(0.0005) + * i=i+1; + * %axis=theax; + * end + */ + for (; ; ) { + mlfAssign(&i, mlfScalar(v_)); + mclArrayAssign2( + &y2, + mlfSin( + mlf_times_transpose( + mclArrayRef1(mclVv(w, "w"), mclVv(i, "i")), + mclVv(x, "x"), + _mxarray7_)), + mlfCreateColonIndex(), + mclVv(i, "i")); + mclAssignAns( + &ans, + mlfNSet( + 0, + mclVv(h, "h"), + _mxarray32_, + mclVv(x, "x"), + _mxarray34_, + mclArrayRef2( + mclVv(y2, "y2"), mlfCreateColonIndex(), mclVv(i, "i")), + NULL)); + mlfDrawnow(NULL); + mlfPause(_mxarray36_); + mlfAssign(&i, mclPlus(mclVv(i, "i"), _mxarray37_)); + if (v_ == e_) { + break; + } + ++v_; + } + } + } + /* + * legend off + */ + mclPrintAns(&ans, mlfNLegend(0, NULL, NULL, NULL, _mxarray8_, NULL)); + /* + * legend('sin(2x)') + */ + mclPrintAns(&ans, mlfNLegend(0, NULL, NULL, NULL, _mxarray38_, NULL)); + /* + * pause(2) + */ + mlfPause(_mxarray7_); + /* + * legend('将y=sin(2x)向左平移pi/6') + */ + mclPrintAns(&ans, mlfNLegend(0, NULL, NULL, NULL, _mxarray40_, NULL)); + /* + * %hold on + * pause + */ + mlfPause(NULL); + /* + * %y=sin(wx)->y=sin(wx+pi/3) + * h=line('Color',[1 0 1],'Marker','.','MarkerSize',4,'EraseMode','Xor'); + */ + mlfAssign( + &h, + mlfNLine( + 1, + _mxarray12_, + _mxarray42_, + _mxarray16_, + _mxarray18_, + _mxarray20_, + _mxarray22_, + _mxarray23_, + _mxarray44_, + NULL)); + /* + * w1=2; + */ + mlfAssign(&w1, _mxarray7_); + /* + * y3=zeros(1101,20); + */ + mlfAssign(&y3, mlfZeros(_mxarray29_, _mxarray46_, NULL)); + /* + * for i=1:20 + */ + { + int v_ = mclForIntStart(1); + int e_ = 20; + if (v_ > e_) { + mlfAssign(&i, _mxarray31_); + } else { + /* + * y3(:,i)=sin(w1*x'+i*pi/60); + * set(h,'xdata',x,'ydata',y3(:,i)); + * drawnow; + * pause(0.0005) + * i=i+1; + * %axis=theax; + * end + */ + for (; ; ) { + mlfAssign(&i, mlfScalar(v_)); + mclArrayAssign2( + &y3, + mlfSin( + mclPlus( + mlf_times_transpose( + mclVv(w1, "w1"), mclVv(x, "x"), _mxarray7_), + mclMrdivide( + mclMtimes(mclVv(i, "i"), _mxarray47_), _mxarray48_))), + mlfCreateColonIndex(), + mclVv(i, "i")); + mclAssignAns( + &ans, + mlfNSet( + 0, + mclVv(h, "h"), + _mxarray32_, + mclVv(x, "x"), + _mxarray34_, + mclArrayRef2( + mclVv(y3, "y3"), mlfCreateColonIndex(), mclVv(i, "i")), + NULL)); + mlfDrawnow(NULL); + mlfPause(_mxarray36_); + mlfAssign(&i, mclPlus(mclVv(i, "i"), _mxarray37_)); + if (v_ == e_) { + break; + } + ++v_; + } + } + } + /* + * legend off + */ + mclPrintAns(&ans, mlfNLegend(0, NULL, NULL, NULL, _mxarray8_, NULL)); + /* + * legend('sin(2x+pi/3)') + */ + mclPrintAns(&ans, mlfNLegend(0, NULL, NULL, NULL, _mxarray49_, NULL)); + /* + * pause(2) + */ + mlfPause(_mxarray7_); + /* + * legend('将y=sin(2x)向左平移pi/6') + */ + mclPrintAns(&ans, mlfNLegend(0, NULL, NULL, NULL, _mxarray40_, NULL)); + /* + * %y=sin(wx+pi/3)->y=2sin(wx+pi/3) + * pause + */ + mlfPause(NULL); + /* + * %y=sin(wx)->y=sin(wx+pi/3) + * h=line('Color',[1 0 1],'Marker','.','MarkerSize',5,'EraseMode','Xor'); + */ + mlfAssign( + &h, + mlfNLine( + 1, + _mxarray12_, + _mxarray42_, + _mxarray16_, + _mxarray18_, + _mxarray20_, + _mxarray51_, + _mxarray23_, + _mxarray44_, + NULL)); + /* + * w3=1:0.05:2; + */ + mlfAssign(&w3, _mxarray27_); + /* + * y4=zeros(1101,21); + */ + mlfAssign(&y4, mlfZeros(_mxarray29_, _mxarray30_, NULL)); + /* + * for i=1:21 + */ + { + int v_ = mclForIntStart(1); + int e_ = 21; + if (v_ > e_) { + mlfAssign(&i, _mxarray31_); + } else { + /* + * y4(:,i)=w3(i)*sin(w1*x'+pi/3); + * set(h,'xdata',x,'ydata',y4(:,i)); + * drawnow; + * %pause(0.0005) + * i=i+1; + * %axis=theax; + * end + */ + for (; ; ) { + mlfAssign(&i, mlfScalar(v_)); + mclArrayAssign2( + &y4, + mclMtimes( + mclArrayRef1(mclVv(w3, "w3"), mclVv(i, "i")), + mlfSin( + mclPlus( + mlf_times_transpose( + mclVv(w1, "w1"), mclVv(x, "x"), _mxarray7_), + _mxarray52_))), + mlfCreateColonIndex(), + mclVv(i, "i")); + mclAssignAns( + &ans, + mlfNSet( + 0, + mclVv(h, "h"), + _mxarray32_, + mclVv(x, "x"), + _mxarray34_, + mclArrayRef2( + mclVv(y4, "y4"), mlfCreateColonIndex(), mclVv(i, "i")), + NULL)); + mlfDrawnow(NULL); + mlfAssign(&i, mclPlus(mclVv(i, "i"), _mxarray37_)); + if (v_ == e_) { + break; + } + ++v_; + } + } + } + /* + * legend off + */ + mclPrintAns(&ans, mlfNLegend(0, NULL, NULL, NULL, _mxarray8_, NULL)); + /* + * legend('2sin(2x+pi/3)') + */ + mclPrintAns(&ans, mlfNLegend(0, NULL, NULL, NULL, _mxarray53_, NULL)); + /* + * legend off + */ + mclPrintAns(&ans, mlfNLegend(0, NULL, NULL, NULL, _mxarray8_, NULL)); + mxDestroyArray(x); + mxDestroyArray(y1); + mxDestroyArray(ans); + mxDestroyArray(h); + mxDestroyArray(w); + mxDestroyArray(y2); + mxDestroyArray(i); + mxDestroyArray(w1); + mxDestroyArray(y3); + mxDestroyArray(w3); + mxDestroyArray(y4); + mxDestroyArray(m); + mclSetCurrentLocalFunctionTable(save_local_function_table_); + /* + * %pause(2) + * %legend('将y=sin(2x)向左平移pi/6') + */ +} diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/test/sjbh1.dll" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/test/sjbh1.dll" index 819fc12c06604006a7657a9853eb2fe55359a966..4afa9052c7219863edb374d83e45eeaf086486f0 100644 Binary files "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/test/sjbh1.dll" and "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/test/sjbh1.dll" differ diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/test/sjbh1.h" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/test/sjbh1.h" index 08c1bf1eeeaac46091a1e5229b1c46ed10830e76..47c876aba4eb3859d13aba4c3dea0d5194be398a 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/test/sjbh1.h" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/test/sjbh1.h" @@ -1,3 +1,34 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:bd662e5449677b2cd4e03c0e0fb3d18868c0424f93639023fe47d3802573e427 -size 830 +/* + * MATLAB Compiler: 3.0 + * Date: Fri Sep 03 08:56:51 2004 + * Arguments: "-B" "macro_default" "-O" "all" "-O" "fold_scalar_mxarrays:on" + * "-O" "fold_non_scalar_mxarrays:on" "-O" "optimize_integer_for_loops:on" "-O" + * "array_indexing:on" "-O" "optimize_conditionals:on" "-x" "-W" "mex" "-L" "C" + * "-t" "-T" "link:mexlibrary" "libmatlbmx.mlib" "sjbh1" + */ + +#ifndef MLF_V2 +#define MLF_V2 1 +#endif + +#ifndef __sjbh1_h +#define __sjbh1_h 1 + +#ifdef __cplusplus +extern "C" { +#endif + +#include "libmatlb.h" + +extern void InitializeModule_sjbh1(void); +extern void TerminateModule_sjbh1(void); +extern _mexLocalFunctionTable _local_function_table_sjbh1; + +extern void mlfSjbh1(mxArray * m); +extern void mlxSjbh1(int nlhs, mxArray * plhs[], int nrhs, mxArray * prhs[]); + +#ifdef __cplusplus +} +#endif + +#endif diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/test/sjbh1.m" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/test/sjbh1.m" index ad7dc9b574be5e978bd466f944fa43c80043b56b..dffaacdbae536af4e24e5601cea07e933031651f 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/test/sjbh1.m" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/test/sjbh1.m" @@ -1,3 +1,67 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6415cb245eabacd1cc19c44d232c5a22a70fdd9a65a43fdb8927d75e7e3d3843 -size 1358 +%sjbh.m +function sjbh1(m) +x=-1:0.01:10; +y1=sin(x); +plot(x,y1) +axis([-1 10 -2 2]) +grid +legend('sin(x)') +pause(2) +legend off +legend('将y=sin(x)的横坐标收缩至原来的1/2') +%hold on +%theax=axis; +pause +%y=sinx->y=sin(wx) +h=line('Color',[1 1 0],'Marker','.','MarkerSize',4,'EraseMode','xor'); +w=1:0.05:2; +y2=zeros(1101,21); +for i=1:21 + y2(:,i)=sin(w(i)*x'); + set(h,'xdata',x,'ydata',y2(:,i)); + drawnow; + pause(0.0005) + i=i+1; + %axis=theax; +end +legend off +legend('sin(2x)') +pause(2) +legend('将y=sin(2x)向左平移pi/6') +%hold on +pause +%y=sin(wx)->y=sin(wx+pi/3) +h=line('Color',[1 0 1],'Marker','.','MarkerSize',4,'EraseMode','Xor'); +w1=2; +y3=zeros(1101,20); +for i=1:20 + y3(:,i)=sin(w1*x'+i*pi/60); + set(h,'xdata',x,'ydata',y3(:,i)); + drawnow; + pause(0.0005) + i=i+1; + %axis=theax; +end +legend off +legend('sin(2x+pi/3)') +pause(2) +legend('将y=sin(2x)向左平移pi/6') +%y=sin(wx+pi/3)->y=2sin(wx+pi/3) +pause +%y=sin(wx)->y=sin(wx+pi/3) +h=line('Color',[1 0 1],'Marker','.','MarkerSize',5,'EraseMode','Xor'); +w3=1:0.05:2; +y4=zeros(1101,21); +for i=1:21 + y4(:,i)=w3(i)*sin(w1*x'+pi/3); + set(h,'xdata',x,'ydata',y4(:,i)); + drawnow; + %pause(0.0005) + i=i+1; + %axis=theax; +end +legend off +legend('2sin(2x+pi/3)') +legend off +%pause(2) +%legend('将y=sin(2x)向左平移pi/6') \ No newline at end of file diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/test/sjbh1_mex.c" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/test/sjbh1_mex.c" index 9a66318b6bf520e8c9765a33ce9f347de8796ec9..b8334fa2d2ef0d62682bb28517a621af9596c16b 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/test/sjbh1_mex.c" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/test/sjbh1_mex.c" @@ -1,3 +1,423 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:94dab1da37ca81e384ace99da64406cacb8d4d5fd553ceb346dad4ff8d02f5ef -size 15681 +/* + * MATLAB Compiler: 3.0 + * Date: Fri Sep 03 08:56:52 2004 + * Arguments: "-B" "macro_default" "-O" "all" "-O" "fold_scalar_mxarrays:on" + * "-O" "fold_non_scalar_mxarrays:on" "-O" "optimize_integer_for_loops:on" "-O" + * "array_indexing:on" "-O" "optimize_conditionals:on" "-x" "-W" "mex" "-L" "C" + * "-t" "-T" "link:mexlibrary" "libmatlbmx.mlib" "sjbh1" + */ + +#ifndef MLF_V2 +#define MLF_V2 1 +#endif + +#include "libmatlb.h" +#include "mwservices.h" +#include "sjbh1.h" +#include "axis.h" +#include "grid.h" +#include "legend.h" + +extern _mex_information _mex_info; + +static mexFunctionTableEntry function_table[1] + = { { "sjbh1", mlxSjbh1, 1, 0, &_local_function_table_sjbh1 } }; + +static _mexInitTermTableEntry init_term_table[1] + = { { InitializeModule_sjbh1, TerminateModule_sjbh1 } }; + +/* + * The function "Mlegend" is the MATLAB callback version of the "legend" + * function from file "d:\matlab6p5p1\toolbox\matlab\graph2d\legend.m". It + * performs a callback to MATLAB to run the "legend" function, and passes any + * resulting output arguments back to its calling function. + */ +static mxArray * Mlegend(mxArray * * labelhandles, + mxArray * * outH, + mxArray * * outM, + int nargout_, + mxArray * varargin) { + mxArray * leghandle = NULL; + mclFevalCallMATLAB( + mclNVarargout(nargout_, 0, &leghandle, labelhandles, outH, outM, NULL), + "legend", + mlfIndexRef(varargin, "{?}", mlfCreateColonIndex()), NULL); + return leghandle; +} + +/* + * The function "Mgrid" is the MATLAB callback version of the "grid" function + * from file "d:\matlab6p5p1\toolbox\matlab\graph2d\grid.m". It performs a + * callback to MATLAB to run the "grid" function, and passes any resulting + * output arguments back to its calling function. + */ +static void Mgrid(mxArray * arg1, mxArray * arg2) { + mclFevalCallMATLAB(mclAnsVarargout(), "grid", arg1, arg2, NULL); +} + +/* + * The function "Maxis" is the MATLAB callback version of the "axis" function + * from file "d:\matlab6p5p1\toolbox\matlab\graph2d\axis.m". It performs a + * callback to MATLAB to run the "axis" function, and passes any resulting + * output arguments back to its calling function. + */ +static mxArray * Maxis(mxArray * * ans2, + mxArray * * ans3, + int nargout_, + mxArray * varargin) { + mxArray * ans1 = NULL; + mclFevalCallMATLAB( + mclNVarargout(nargout_, 0, &ans1, ans2, ans3, NULL), + "axis", + mlfIndexRef(varargin, "{?}", mlfCreateColonIndex()), NULL); + return ans1; +} + +/* + * The function "mexLibrary" is a Compiler-generated mex wrapper, suitable for + * building a MEX-function. It initializes any persistent variables as well as + * a function table for use by the feval function. It then calls the function + * "mlxSjbh1". Finally, it clears the feval table and exits. + */ +mex_information mexLibrary(void) { + mclMexLibraryInit(); + return &_mex_info; +} + +_mex_information _mex_info + = { 1, 1, function_table, 0, NULL, 0, NULL, 1, init_term_table }; + +/* + * The function "mlfNLegend" contains the nargout interface for the "legend" + * M-function from file "d:\matlab6p5p1\toolbox\matlab\graph2d\legend.m" (lines + * 0-0). This interface is only produced if the M-function uses the special + * variable "nargout". The nargout interface allows the number of requested + * outputs to be specified via the nargout argument, as opposed to the normal + * interface which dynamically calculates the number of outputs based on the + * number of non-NULL inputs it receives. This function processes any input + * arguments and passes them to the implementation version of the function, + * appearing above. + */ +mxArray * mlfNLegend(int nargout, + mxArray * * labelhandles, + mxArray * * outH, + mxArray * * outM, + ...) { + mxArray * varargin = NULL; + mxArray * leghandle = NULL; + mxArray * labelhandles__ = NULL; + mxArray * outH__ = NULL; + mxArray * outM__ = NULL; + mlfVarargin(&varargin, outM, 0); + mlfEnterNewContext(3, -1, labelhandles, outH, outM, varargin); + leghandle = Mlegend(&labelhandles__, &outH__, &outM__, nargout, varargin); + mlfRestorePreviousContext(3, 0, labelhandles, outH, outM); + mxDestroyArray(varargin); + if (labelhandles != NULL) { + mclCopyOutputArg(labelhandles, labelhandles__); + } else { + mxDestroyArray(labelhandles__); + } + if (outH != NULL) { + mclCopyOutputArg(outH, outH__); + } else { + mxDestroyArray(outH__); + } + if (outM != NULL) { + mclCopyOutputArg(outM, outM__); + } else { + mxDestroyArray(outM__); + } + return mlfReturnValue(leghandle); +} + +/* + * The function "mlfLegend" contains the normal interface for the "legend" + * M-function from file "d:\matlab6p5p1\toolbox\matlab\graph2d\legend.m" (lines + * 0-0). This function processes any input arguments and passes them to the + * implementation version of the function, appearing above. + */ +mxArray * mlfLegend(mxArray * * labelhandles, + mxArray * * outH, + mxArray * * outM, + ...) { + mxArray * varargin = NULL; + int nargout = 1; + mxArray * leghandle = NULL; + mxArray * labelhandles__ = NULL; + mxArray * outH__ = NULL; + mxArray * outM__ = NULL; + mlfVarargin(&varargin, outM, 0); + mlfEnterNewContext(3, -1, labelhandles, outH, outM, varargin); + if (labelhandles != NULL) { + ++nargout; + } + if (outH != NULL) { + ++nargout; + } + if (outM != NULL) { + ++nargout; + } + leghandle = Mlegend(&labelhandles__, &outH__, &outM__, nargout, varargin); + mlfRestorePreviousContext(3, 0, labelhandles, outH, outM); + mxDestroyArray(varargin); + if (labelhandles != NULL) { + mclCopyOutputArg(labelhandles, labelhandles__); + } else { + mxDestroyArray(labelhandles__); + } + if (outH != NULL) { + mclCopyOutputArg(outH, outH__); + } else { + mxDestroyArray(outH__); + } + if (outM != NULL) { + mclCopyOutputArg(outM, outM__); + } else { + mxDestroyArray(outM__); + } + return mlfReturnValue(leghandle); +} + +/* + * The function "mlfVLegend" contains the void interface for the "legend" + * M-function from file "d:\matlab6p5p1\toolbox\matlab\graph2d\legend.m" (lines + * 0-0). The void interface is only produced if the M-function uses the special + * variable "nargout", and has at least one output. The void interface function + * specifies zero output arguments to the implementation version of the + * function, and in the event that the implementation version still returns an + * output (which, in MATLAB, would be assigned to the "ans" variable), it + * deallocates the output. This function processes any input arguments and + * passes them to the implementation version of the function, appearing above. + */ +void mlfVLegend(mxArray * synthetic_varargin_argument, ...) { + mxArray * varargin = NULL; + mxArray * leghandle = NULL; + mxArray * labelhandles = NULL; + mxArray * outH = NULL; + mxArray * outM = NULL; + mlfVarargin(&varargin, synthetic_varargin_argument, 1); + mlfEnterNewContext(0, -1, varargin); + leghandle + = Mlegend(&labelhandles, &outH, &outM, 0, synthetic_varargin_argument); + mlfRestorePreviousContext(0, 0); + mxDestroyArray(varargin); + mxDestroyArray(leghandle); + mxDestroyArray(labelhandles); + mxDestroyArray(outH); +} + +/* + * The function "mlxLegend" contains the feval interface for the "legend" + * M-function from file "d:\matlab6p5p1\toolbox\matlab\graph2d\legend.m" (lines + * 0-0). The feval function calls the implementation version of legend through + * this function. This function processes any input arguments and passes them + * to the implementation version of the function, appearing above. + */ +void mlxLegend(int nlhs, mxArray * plhs[], int nrhs, mxArray * prhs[]) { + mxArray * mprhs[1]; + mxArray * mplhs[4]; + int i; + if (nlhs > 4) { + mlfError( + mxCreateString( + "Run-time Error: File: legend Line: 1 Column: " + "1 The function \"legend\" was called with mor" + "e than the declared number of outputs (4)."), + NULL); + } + for (i = 0; i < 4; ++i) { + mplhs[i] = NULL; + } + mlfEnterNewContext(0, 0); + mprhs[0] = NULL; + mlfAssign(&mprhs[0], mclCreateVararginCell(nrhs, prhs)); + mplhs[0] = Mlegend(&mplhs[1], &mplhs[2], &mplhs[3], nlhs, mprhs[0]); + mlfRestorePreviousContext(0, 0); + plhs[0] = mplhs[0]; + for (i = 1; i < 4 && i < nlhs; ++i) { + plhs[i] = mplhs[i]; + } + for (; i < 4; ++i) { + mxDestroyArray(mplhs[i]); + } + mxDestroyArray(mprhs[0]); +} + +/* + * The function "mlfGrid" contains the normal interface for the "grid" + * M-function from file "d:\matlab6p5p1\toolbox\matlab\graph2d\grid.m" (lines + * 0-0). This function processes any input arguments and passes them to the + * implementation version of the function, appearing above. + */ +void mlfGrid(mxArray * arg1, mxArray * arg2) { + mlfEnterNewContext(0, 2, arg1, arg2); + Mgrid(arg1, arg2); + mlfRestorePreviousContext(0, 2, arg1, arg2); +} + +/* + * The function "mlxGrid" contains the feval interface for the "grid" + * M-function from file "d:\matlab6p5p1\toolbox\matlab\graph2d\grid.m" (lines + * 0-0). The feval function calls the implementation version of grid through + * this function. This function processes any input arguments and passes them + * to the implementation version of the function, appearing above. + */ +void mlxGrid(int nlhs, mxArray * plhs[], int nrhs, mxArray * prhs[]) { + mxArray * mprhs[2]; + int i; + if (nlhs > 0) { + mlfError( + mxCreateString( + "Run-time Error: File: grid Line: 1 Column: 1 The function \"grid\"" + " was called with more than the declared number of outputs (0)."), + NULL); + } + if (nrhs > 2) { + mlfError( + mxCreateString( + "Run-time Error: File: grid Line: 1 Column: 1 The function \"grid" + "\" was called with more than the declared number of inputs (2)."), + NULL); + } + for (i = 0; i < 2 && i < nrhs; ++i) { + mprhs[i] = prhs[i]; + } + for (; i < 2; ++i) { + mprhs[i] = NULL; + } + mlfEnterNewContext(0, 2, mprhs[0], mprhs[1]); + Mgrid(mprhs[0], mprhs[1]); + mlfRestorePreviousContext(0, 2, mprhs[0], mprhs[1]); +} + +/* + * The function "mlfNAxis" contains the nargout interface for the "axis" + * M-function from file "d:\matlab6p5p1\toolbox\matlab\graph2d\axis.m" (lines + * 0-0). This interface is only produced if the M-function uses the special + * variable "nargout". The nargout interface allows the number of requested + * outputs to be specified via the nargout argument, as opposed to the normal + * interface which dynamically calculates the number of outputs based on the + * number of non-NULL inputs it receives. This function processes any input + * arguments and passes them to the implementation version of the function, + * appearing above. + */ +mxArray * mlfNAxis(int nargout, mxArray * * ans2, mxArray * * ans3, ...) { + mxArray * varargin = NULL; + mxArray * ans1 = NULL; + mxArray * ans2__ = NULL; + mxArray * ans3__ = NULL; + mlfVarargin(&varargin, ans3, 0); + mlfEnterNewContext(2, -1, ans2, ans3, varargin); + ans1 = Maxis(&ans2__, &ans3__, nargout, varargin); + mlfRestorePreviousContext(2, 0, ans2, ans3); + mxDestroyArray(varargin); + if (ans2 != NULL) { + mclCopyOutputArg(ans2, ans2__); + } else { + mxDestroyArray(ans2__); + } + if (ans3 != NULL) { + mclCopyOutputArg(ans3, ans3__); + } else { + mxDestroyArray(ans3__); + } + return mlfReturnValue(ans1); +} + +/* + * The function "mlfAxis" contains the normal interface for the "axis" + * M-function from file "d:\matlab6p5p1\toolbox\matlab\graph2d\axis.m" (lines + * 0-0). This function processes any input arguments and passes them to the + * implementation version of the function, appearing above. + */ +mxArray * mlfAxis(mxArray * * ans2, mxArray * * ans3, ...) { + mxArray * varargin = NULL; + int nargout = 1; + mxArray * ans1 = NULL; + mxArray * ans2__ = NULL; + mxArray * ans3__ = NULL; + mlfVarargin(&varargin, ans3, 0); + mlfEnterNewContext(2, -1, ans2, ans3, varargin); + if (ans2 != NULL) { + ++nargout; + } + if (ans3 != NULL) { + ++nargout; + } + ans1 = Maxis(&ans2__, &ans3__, nargout, varargin); + mlfRestorePreviousContext(2, 0, ans2, ans3); + mxDestroyArray(varargin); + if (ans2 != NULL) { + mclCopyOutputArg(ans2, ans2__); + } else { + mxDestroyArray(ans2__); + } + if (ans3 != NULL) { + mclCopyOutputArg(ans3, ans3__); + } else { + mxDestroyArray(ans3__); + } + return mlfReturnValue(ans1); +} + +/* + * The function "mlfVAxis" contains the void interface for the "axis" + * M-function from file "d:\matlab6p5p1\toolbox\matlab\graph2d\axis.m" (lines + * 0-0). The void interface is only produced if the M-function uses the special + * variable "nargout", and has at least one output. The void interface function + * specifies zero output arguments to the implementation version of the + * function, and in the event that the implementation version still returns an + * output (which, in MATLAB, would be assigned to the "ans" variable), it + * deallocates the output. This function processes any input arguments and + * passes them to the implementation version of the function, appearing above. + */ +void mlfVAxis(mxArray * synthetic_varargin_argument, ...) { + mxArray * varargin = NULL; + mxArray * ans1 = NULL; + mxArray * ans2 = NULL; + mxArray * ans3 = NULL; + mlfVarargin(&varargin, synthetic_varargin_argument, 1); + mlfEnterNewContext(0, -1, varargin); + ans1 = Maxis(&ans2, &ans3, 0, synthetic_varargin_argument); + mlfRestorePreviousContext(0, 0); + mxDestroyArray(varargin); + mxDestroyArray(ans1); + mxDestroyArray(ans2); +} + +/* + * The function "mlxAxis" contains the feval interface for the "axis" + * M-function from file "d:\matlab6p5p1\toolbox\matlab\graph2d\axis.m" (lines + * 0-0). The feval function calls the implementation version of axis through + * this function. This function processes any input arguments and passes them + * to the implementation version of the function, appearing above. + */ +void mlxAxis(int nlhs, mxArray * plhs[], int nrhs, mxArray * prhs[]) { + mxArray * mprhs[1]; + mxArray * mplhs[3]; + int i; + if (nlhs > 3) { + mlfError( + mxCreateString( + "Run-time Error: File: axis Line: 1 Column: 1 The function \"axis\"" + " was called with more than the declared number of outputs (3)."), + NULL); + } + for (i = 0; i < 3; ++i) { + mplhs[i] = NULL; + } + mlfEnterNewContext(0, 0); + mprhs[0] = NULL; + mlfAssign(&mprhs[0], mclCreateVararginCell(nrhs, prhs)); + mplhs[0] = Maxis(&mplhs[1], &mplhs[2], nlhs, mprhs[0]); + mlfRestorePreviousContext(0, 0); + plhs[0] = mplhs[0]; + for (i = 1; i < 3 && i < nlhs; ++i) { + plhs[i] = mplhs[i]; + } + for (; i < 3; ++i) { + mxDestroyArray(mplhs[i]); + } + mxDestroyArray(mprhs[0]); +} diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/test/test_exe.cpp" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/test/test_exe.cpp" index e4ea7cc859576fbd7429d572d39deaaf45996536..ac3d49882526c2d12a30927d166cc3968f6f6337 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/test/test_exe.cpp" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/test/test_exe.cpp" @@ -1,3 +1,104 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:319223406d4d5c9af885392385b037ba1282b92765f7afc9b9ccdd9751113166 -size 3489 +// +// MATLAB Compiler: 3.0 +// Date: Thu Sep 02 20:52:11 2004 +// Arguments: "-B" "macro_default" "-O" "all" "-O" "fold_scalar_mxarrays:on" +// "-O" "fold_non_scalar_mxarrays:on" "-O" "optimize_integer_for_loops:on" "-O" +// "array_indexing:on" "-O" "optimize_conditionals:on" "-p" "-W" "main" "-L" +// "Cpp" "-t" "-T" "link:exe" "-h" "libmmfile.mlib" "test_exe.m" +// +#include "test_exe.hpp" +#include "libmatlbm.hpp" +static mwArray _mxarray0_ = mclInitializeDouble(18800.0); +static mwArray _mxarray1_ = mclInitializeDouble(100.0); + +static mxChar _array3_[4] = { 'o', 'u', 't', '=' }; +static mwArray _mxarray2_ = mclInitializeString(4, _array3_); + +void InitializeModule_test_exe() { +} + +void TerminateModule_test_exe() { +} + +static mwArray Mtest_exe(int nargout_); + +_mexLocalFunctionTable _local_function_table_test_exe + = { 0, (mexFunctionTableEntry *)NULL }; + +// +// The function "test_exe" contains the normal interface for the "test_exe" +// M-function from file "d:\matlab6p5p1\work\test\test_exe.m" (lines 1-4). This +// function processes any input arguments and passes them to the implementation +// version of the function, appearing above. +// +mwArray test_exe() { + int nargout = 1; + mwArray out = mwArray::UNDEFINED; + out = Mtest_exe(nargout); + return out; +} + +// +// The function "mlxTest_exe" contains the feval interface for the "test_exe" +// M-function from file "d:\matlab6p5p1\work\test\test_exe.m" (lines 1-4). The +// feval function calls the implementation version of test_exe through this +// function. This function processes any input arguments and passes them to the +// implementation version of the function, appearing above. +// +void mlxTest_exe(int nlhs, mxArray * plhs[], int nrhs, mxArray * prhs[]) { + MW_BEGIN_MLX(); + { + mwArray mplhs[1]; + mclCppUndefineArrays(1, mplhs); + if (nlhs > 1) { + error( + mwVarargin( + mwArray( + "Run-time Error: File: test_exe Line: 1 Column: " + "1 The function \"test_exe\" was called with mor" + "e than the declared number of outputs (1)."))); + } + if (nrhs > 0) { + error( + mwVarargin( + mwArray( + "Run-time Error: File: test_exe Line: 1 Column: " + "1 The function \"test_exe\" was called with mor" + "e than the declared number of inputs (0)."))); + } + mplhs[0] = Mtest_exe(nlhs); + plhs[0] = mplhs[0].FreezeData(); + } + MW_END_MLX(); +} + +// +// The function "Mtest_exe" is the implementation version of the "test_exe" +// M-function from file "d:\matlab6p5p1\work\test\test_exe.m" (lines 1-4). It +// contains the actual compiled code for that M-function. It is a static +// function and must only be called from one of the interface functions, +// appearing below. +// +// +// function [out]=test_exe() +// +static mwArray Mtest_exe(int nargout_) { + mwLocalFunctionTable save_local_function_table_ + = &_local_function_table_test_exe; + mwArray out = mwArray::UNDEFINED; + mwArray ans = mwArray::UNDEFINED; + // + // out=100*188*sqrt(100); + // + out = _mxarray0_ * sqrt(_mxarray1_); + // + // disp('out='); + // + disp(_mxarray2_); + // + // disp(out); + // + disp(mwVv(out, "out")); + mwValidateOutput(out, 1, nargout_, "out", "test_exe"); + return out; +} diff --git "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/test/test_exe.hpp" "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/test/test_exe.hpp" index 6e9292ccd4d4142f999615e92640c9e5b9915e70..67c819d58eb6112d8de7623c0b41c6789e312355 100644 --- "a/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/test/test_exe.hpp" +++ "b/matlab\346\225\260\345\255\246\345\273\272\346\250\241\347\256\227\346\263\225/matlab\347\273\217\345\205\270\347\256\227\346\263\225\347\232\204\347\250\213\345\272\217/Arithmetic/work/test/test_exe.hpp" @@ -1,3 +1,24 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8ee69875955f0057b9c38a6df47c2cc394adad4efdf1593660f5844a63a1ac3e -size 752 +// +// MATLAB Compiler: 3.0 +// Date: Thu Sep 02 20:52:11 2004 +// Arguments: "-B" "macro_default" "-O" "all" "-O" "fold_scalar_mxarrays:on" +// "-O" "fold_non_scalar_mxarrays:on" "-O" "optimize_integer_for_loops:on" "-O" +// "array_indexing:on" "-O" "optimize_conditionals:on" "-p" "-W" "main" "-L" +// "Cpp" "-t" "-T" "link:exe" "-h" "libmmfile.mlib" "test_exe.m" +// +#ifndef __test_exe_hpp +#define __test_exe_hpp 1 + +#include "libmatlb.hpp" + +extern void InitializeModule_test_exe(); +extern void TerminateModule_test_exe(); +extern _mexLocalFunctionTable _local_function_table_test_exe; + +extern mwArray test_exe(); +#ifdef __cplusplus +extern "C" +#endif +void mlxTest_exe(int nlhs, mxArray * plhs[], int nrhs, mxArray * prhs[]); + +#endif