举例说明
x = 0:pi/100:2*pi;SEO靠我 y1 = sin(x); y2 = sin(x-0.25); y3 = sin(x-0.5); y4 =sin(x-0.75); SEO靠我 figure plot(x,y1,x,y2,--,x,y3,:,x,y4,-.)举例说明
x = 0:pi/100:2*pi; y1 = sin(x); y2 = sin(x-0.25); y3 = sin(x-0.5);SEO靠我 y4 =sin(x-0.75); y5 = sin(x-1); y6 = sin(x-1.25); y7 = sin(x-1.5); SEO靠我 y8 =sin(x-1.75); y9 =sin(x-0.75); y10 = sin(x-2); y11 = sin(x-2.25);SEO靠我 y12 = sin(x-2.5); y13 =sin(x-2.75); figure plot(x,y1,-o,MarkerIndicSEO靠我es,1:5:length(y1));%创建一个线图并每隔四个数据点显示一个标记 hold on; plot(x,y2,-+,MarkerIndices,1:5:lenSEO靠我gth(y2));%创建一个线图并每隔四个数据点显示一个标记 hold on; plot(x,y3,-*,MarkerIndices,1:5:length(y3));%SEO靠我创建一个线图并每隔四个数据点显示一个标记 hold on; plot(x,y4,-.,MarkerIndices,1:5:length(y4));%创建一个线图并每隔四SEO靠我个数据点显示一个标记 hold on; plot(x,y5,-x,MarkerIndices,1:5:length(y5));%创建一个线图并每隔四个数据点显示一个标记SEO靠我 hold on; plot(x,y6,-s,MarkerIndices,1:5:length(y6));%创建一个线图并每隔四个数据点显示一个标记 hSEO靠我old on; plot(x,y7,-d,MarkerIndices,1:5:length(y7));%创建一个线图并每隔四个数据点显示一个标记 hold on; SEO靠我 plot(x,y8,-^,MarkerIndices,1:5:length(y8));%创建一个线图并每隔四个数据点显示一个标记 hold on; plotSEO靠我(x,y9,-v,MarkerIndices,1:5:length(y9));%创建一个线图并每隔四个数据点显示一个标记 hold on; plot(x,y10,->,SEO靠我MarkerIndices,1:5:length(y10));%创建一个线图并每隔四个数据点显示一个标记 hold on; plot(x,y11,-<,MarkerInSEO靠我dices,1:5:length(y11));%创建一个线图并每隔四个数据点显示一个标记 hold on; plot(x,y12,-p,MarkerIndices,1:SEO靠我5:length(y12));%创建一个线图并每隔四个数据点显示一个标记 hold on; plot(x,y13,-h,MarkerIndices,1:5:lengthSEO靠我(y13));%创建一个线图并每隔四个数据点显示一个标记 hold on;网站备案号:浙ICP备17034767号-2