摘要:
t=1:5;s1=sin(t);s2=cos(t);s=[t;s1;s2];fid1=fopen('test.dat','wt');fprintf(fid1,'\nThis is a Formated ... 阅读全文
posted @ 2019-07-09 15:34
蔡军帅
阅读(133)
评论(0)
推荐(0)
摘要:
t=1:5; s1=sin(t); s2=cos(t); s=[t;s1;s2]; fid1=fopen('test.dat','wt'); fprintf(fid1,'\nThis is a Formated file\n'); fprintf(fid1,'\n%4d %+12.5E %+12.5E\n',s); fclose(fid1); fid2=fope... 阅读全文
posted @ 2019-07-09 15:34
蔡军帅
阅读(410)
评论(0)
推荐(0)
摘要:
>> X=rand(100,2); >> Y=pdist(X,'euclidean'); >> Z = linkage(Y,'average'); >> dendrogram(Z); >> >> X = [randn(100,2)+ones(100,2);randn(100,2)-ones(100,2)]; >> [idx,ctrs] = kmeans(X,2... 阅读全文
posted @ 2019-07-09 14:48
蔡军帅
阅读(1235)
评论(0)
推荐(0)
摘要:
>> X=rand(100,2);>> Y=pdist(X,'euclidean');>> Z = linkage(Y,'average');>> dendrogram(Z);>> >> X = [ra... 阅读全文
posted @ 2019-07-09 14:48
蔡军帅
阅读(179)
评论(0)
推荐(0)
摘要:
>> x=0:.1:2*pi;plot(x,sin(x),x,cos(x)) >> plot(x,sin(x),'pentagramr',x,cos(x),'.b') x=li... 阅读全文
posted @ 2019-07-09 14:31
蔡军帅
阅读(175)
评论(0)
推荐(0)
摘要:
>> x=0:.1:2*pi;plot(x,sin(x),x,cos(x)) >> plot(x,sin(x),'pentagramr',x,cos(x),'.b') x=linspace(0,2*pi,30);y=sin(x); z=cos(x);u=2*sin(x).*cos(x);v=sin(x... 阅读全文
posted @ 2019-07-09 14:31
蔡军帅
阅读(288)
评论(0)
推荐(0)
摘要:
>> x=-3:0.2:5;y=x.^2-1;xn=-2:0.1:7; >> >> %多元函数(z=sin(x2+y2)/(x2+y2))拟合 >> [X,Y]=meshgrid(-2:0.2:2);Z=sin(X.^2+Y.^2)./(X.^2+Y.^2+eps); >> SX=[X(:),Y(:)];SZ=Z(:); [nX,nY]=meshgrid(-3:... 阅读全文
posted @ 2019-07-09 14:09
蔡军帅
阅读(9006)
评论(0)
推荐(0)
摘要:
>> x=-3:0.2:5;y=x.^2-1;xn=-2:0.1:7;>> >> %多元函数(z=sin(x2+y2)/(x2+y2))拟合>> [X,Y]=meshgrid(-2:0.2:2);Z=si... 阅读全文
posted @ 2019-07-09 14:09
蔡军帅
阅读(256)
评论(0)
推荐(0)
摘要:
Minf(x)=-5x1 -4x2 -6x3 x1 -x2 +x3 > c=[-5,-4,-6];>> A=[1 -1 13 2 43 2 0];>> b=[20;42... 阅读全文
posted @ 2019-07-09 10:03
蔡军帅
阅读(574)
评论(0)
推荐(0)
摘要:
Minf(x)=-5x1 -4x2 -6x3 x1 -x2 +x3 <=20 3x1 +2x2 +4x3 <=42 3x1 +2x2 <=30 0<=x1,0<=x2,0<=x3 阅读全文
posted @ 2019-07-09 10:03
蔡军帅
阅读(2181)
评论(0)
推荐(0)
浙公网安备 33010602011771号