x=
0:
0.1:
6*
pi;
for step=
1:
2:
100
s=
0;
for i=
1:
2:step
s = s+
1/i*sin(i*
x);
end
plot(s);set(figure(1),
'visible',
'off');
filename=[num2str(step,
'd'),
'.png'];
print(1,
'-dpng',filename);
end
转载于:https://www.cnblogs.com/craftor/p/3811726.html
相关资源:正弦波转方波常用电路
转载请注明原文地址: https://win8.8miu.com/read-1495831.html