Guest User

Untitled

a guest
Jan 22nd, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. >> avstand = 40:10:100;
  2. >> intensitet = [1.0 0.63 0.49 0.34 0.19 0.14 0.12];
  3. >> pcoeff=polyfit(avstand,intensitet,1);
  4. >> xp=40:0.1:100;
  5. >> yp=polyval(pcoeff,xp);
  6. >> avstandp=40:0.1:100;
  7. >> intensitetp=polyval(pcoeff,avstandp);
  8. >> plot(avstand,intensitet,'o',avstandp,intensitetp,'m')
Add Comment
Please, Sign In to add comment