Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- T = [ 5.75,5,4.2,3.4,2.7,1.05,0.7,0.5];
- N = [500,800,1300,1800,2250,4500,5000,5750];
- T_interpol = 1:1:3 ; % we will create a vector of = [1,2,3]
- N_interpol = interp1(T,N,T_interpol); % this will give us the values at the vector [1,2,3]
- a = polyfit(T,N,4);
- TT = 0:0.1:5.75;
- NN = polyval(a,TT);
- plot(T,N,'d',TT,NN)
Advertisement
Add Comment
Please, Sign In to add comment