武动乾坤吧 关注:2,962,833贴子:54,136,921
  • 1回复贴,共1

有人用matlab画了个胸 我来画双峰

只看楼主收藏回复

clc; close all; clear all;
tf = 1000;
Ts = 0.001;
figure
hold on;
% grid on;
axis([-1.2,1.2,-0.4,1.5])
for i=1:tf
x = i*Ts;
y = 1.5*x*log(x)-1/36*exp(-(36*x-36/2.7183)^4);
plot(y,x);
end


1楼2013-03-24 10:50回复
    clc; close all; clear all;
    tf = 1000;
    Ts = 0.001;
    figure
    hold on;
    % grid on;
    axis([-1.2,1.2,-0.4,1.5])
    for i=1:tf
    x = i*Ts;
    y = 1.5*x*log(x)-1/36*exp(-(36*x-36/2.7183)^4);
    plot(y,x);
    end hold on
    for i=1:tf
    x = i*Ts;
    y = 2.5*x*log(x)-1/36*exp(-(36*x-36/2.7183)^4);
    plot(y,x);
    end
    hold on
    axis([-1 0.7 -0.1 1])


    2楼2013-03-24 10:51
    回复