Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %% example *This is the title for this example*
- % 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}$)
- %
- %% *Itemize list*
- %
- % * x1 : first input
- % * x2 : second input
- %%
- % How to insert an enumerated list
- %%
- % # number 1 in our test
- % # final number
- %%
- % How would I underline? or *bold *or _italic_
- function [y1,y2]= example(x1, x2)
- %% *Inputs*
- y1 = x1; % This is a comment shown in greem
- y2 = x2;
- %% *Some more nonsensical code*
- A(1) = x1;
- A(2) = x1;
- A(3) = y1;
- A(4) = y2;
- %% First Order Conditions
- % Consumption is an input when the zlb does not bind, but defined by the Euler
- % equation when it does.
- if x1>x2
- c = x1^2;
- R = 1;
- else
- c = x2;
- R = y1;
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement