Skip to content
Snippets Groups Projects
Select Git revision
  • 9e33b043b2c84fcc4b81c1b827724d4092638e92
  • master default
  • anders.blomdell
  • typeref
  • pragma
  • compiler-refactoring
  • labcomm2013
  • v2014.1
  • v2014.0
  • v2013.0
10 results

LabComm.java

Blame
  • Forked from Anders Blomdell / LabComm
    Source project has a limited visibility.
    interpolateR.m 368 B
    function r = interpolateR(radius, height)
    %Function to use for linear interpolation of the radius values used in
    %boundaries and deafult position. The result is a r value inbetween to
    %distinct heights.
    
    k = floor(height/10);
    if k == 15
        r = radius(k);
    else
        diff = radius(k+1) - radius(k);
        extra = diff * ((height/10)-k);
        r = radius(k) + extra;
    end
    
    end