Advertisement
nigu

fun8.m

Nov 21st, 2014
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.38 KB | None | 0 0
  1. % dati eserc 8
  2. %
  3. function [nome,y]=fun8(x,no_fun)
  4. switch no_fun
  5.     case 1
  6.         nome='y=exp(-x).*sin(2*pi*x); [ 4]';
  7.         y=exp(-x).*sin(2*pi*x);
  8.     case 2
  9.         nome='y=(-3*x+1.4).*sin(18*x); [0.9 1.-5]';
  10.         y=(-3*x+1.4).*sin(18*x);
  11.     case 3
  12.         nome='y=1./(1+x.*x); [-6 6]';
  13.         y=1./(1+x.*x);
  14.     case 4
  15.         nome='y=sin(x)';
  16.         y=sin(x);
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement