Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- % dati eserc 8
- %
- function [nome,y]=fun8(x,no_fun)
- switch no_fun
- case 1
- nome='y=exp(-x).*sin(2*pi*x); [ 4]';
- y=exp(-x).*sin(2*pi*x);
- case 2
- nome='y=(-3*x+1.4).*sin(18*x); [0.9 1.-5]';
- y=(-3*x+1.4).*sin(18*x);
- case 3
- nome='y=1./(1+x.*x); [-6 6]';
- y=1./(1+x.*x);
- case 4
- nome='y=sin(x)';
- y=sin(x);
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement