参考代码:
clear;clc
t = 0:0.01:2*pi;
f = 5 + 8/pi*sin((pi/10)*t);
g = 5 + 8/(3*pi)*sin((3*pi/10)*t);
z = 5 + 8/(5*pi)*sin((5*pi/10)*t);
figure
plot(t,f,t,g,t,z)
y = f+g+z;
hold on
plot(t,y)
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!