Re_func(V_inf, altitude, l)

Calc Reynold's # given altitude, velocity, and length

You are now following this Submission

function [ Re ] = Re_func(V_inf, altitude, l)
%This function outputs the Reynolds number for dry air given an altitude [m],
%free stream velocity [ m/s], and characteristic length [ m]. Often the characteristic
%length for airfoils is the chord length.
%Inputs = altitude [m], V_inf = free stream velocity [m/s], l = characteristic length [m]
%Outputs = Reynolds numbers [ dimensionless ]
% arg2 and arg3 are optional,
% arg1 is mandatory

%You can call this function by either somefcn(arg1),somefcn(arg1,arg2) or somefcn(arg1,arg2,arg3), but not somefcn(ar1,arg3).

Cite As

Noel Puldon (2026). Re_func(V_inf, altitude, l) (https://www.mathworks.com/matlabcentral/fileexchange/52837-re_func-v_inf-altitude-l), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Develop Apps Using App Designer in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0

Added flexibility to function by allowing for optional input arguments.
if nargin < 3
l = 1; %[m] Default characteristic length to one.
end
if nargin < 2
altitude = 0; %[m] Default altitude to sea level.
end