SHARE
TWEET

Untitled

a guest May 11th, 2019 148 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. a_ds=3+mod(47411,3)
  2. b_ds=4+mod(47411,5)
  3. x=[-pi:0.01:pi];
  4. y_ds=a_ds*x.^2-b_ds;
  5. m=4+mod(47411,3)
  6. j_ds=[0:1:2*m-1];
  7. xj=-pi+(j_ds/m)*pi
  8. yj=a_ds*xj.^2-b_ds
  9. a0_ds=(1/3)*sum(yj.*cos(0*xj))
  10. a1_ds=(1/3)*sum(yj.*cos(1*xj))
  11. a2_ds=(1/3)*sum(yj.*cos(2*xj))
  12. b1_ds=(1/3)*sum(yj.*sin(xj))
  13. S2_ds=(1/2)*a0_ds+a1_ds*cos(x)+a2_ds*cos(2*x)+b1_ds*sin(x);
  14. plot(x,S2_ds)
  15. hold on
  16. plot(x,y_ds)
  17. scatter(xj,yj)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top