Skip to content
Snippets Groups Projects
Select Git revision
  • 2bcaa6653b11698f8c5f86d6bcdd71ea55a5abe4
  • master default
  • labcomm2006
  • typedefs
  • anders.blomdell
  • typeref
  • pragma
  • compiler-refactoring
  • labcomm2013
  • v2014.4
  • v2006.0
  • v2014.3
  • v2014.2
  • v2014.1
  • v2014.0
  • v2013.0
16 results

LabCommParser.parser

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