Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- % Definizione funzioni test per esercitazione 10
- %
- function y=fun_quad(x,no)
- switch no
- case 1
- y=sqrt(1-x.^2);
- case 2
- y=1./sqrt(x);
- case 3
- y=2*x.^3+5*x;
- case 4
- y=exp(-x.^2);
- case 5
- y=1./(1+x.^2);
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement