Advertisement
SilLAwNeD

Scilab, calcg function

Oct 16th, 2018
999
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scilab 0.20 KB | None | 0 0
  1. function [z] = calcg(t, T, cc)
  2.     exec('**/place.sci', -1)
  3.  
  4.     i = place(T, t)
  5.     dt = t-T(i)
  6.     dt2 = dt * dt
  7.  
  8.     z = cc(i, 1)+cc(i, 2)*dt+cc(i,3)*dt2+cc(i,4)*dt2*(t-T(i+1))
  9. endfunction
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement