Convert code of Matlab to Simulink <p>I make one code in matlab to resolve and plot one diferential equation, but my problem now is how to make in simulink:</p> <p>The code of matlab is:</p> <pre><code>function dy = eqdif1(t,y) %y''+4y=sin^2(2x) % with initial values y(pi) = 0,y’(pi) = 0 % y(1)=y y(2)=y' dy = [y(2); (sin(2*t).^2 - 4*y(1))]; clc,clear yp = [0 0]; %initial values options = odeset('RelTol', 1e-4); [t,y]= ode23('eqdif1',[pi pi*3],yp,options); ya=-(1/6)*cos(2.*t)+ (1/4)*(cos(2.*t)).^2-(1/12)*(cos(2.*t)).^4+ (1/12)*(sin(2.*t)).^4; %analitical solution figure plot(t,y(:,1),'-',t,y(:,2),'--',t,ya,'-.') title(['y'''' + 4y = sin^2(2x)']) </code></pre> <p>Anybody can help me, with one example or explication of simulink</p> <p>Thank you</p>