Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2019
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. %% example *This is the title for this example*
  2. % Some explanation for the objetive of the code. The formtting rules of matlab are quite simple. To write equations you can use basic latex: ($pi +frac{a}{b^2}$)
  3. %
  4. %% *Itemize list*
  5. %
  6. % * x1 : first input
  7. % * x2 : second input
  8. %%
  9. % How to insert an enumerated list
  10. %%
  11. % # number 1 in our test
  12. % # final number
  13. %%
  14. % How would I underline? or *bold *or _italic_
  15. function [y1,y2]= example(x1, x2)
  16. %% *Inputs*
  17. y1 = x1; % This is a comment shown in greem
  18. y2 = x2;
  19.  
  20. %% *Some more nonsensical code*
  21. A(1) = x1;
  22. A(2) = x1;
  23. A(3) = y1;
  24. A(4) = y2;
  25. %% First Order Conditions
  26. % Consumption is an input when the zlb does not bind, but defined by the Euler
  27. % equation when it does.
  28. if x1>x2
  29. c = x1^2;
  30. R = 1;
  31. else
  32. c = x2;
  33. R = y1;
  34. end
  35. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement