From 3daf9f7e271fd7caa98673b122aeac2b6c23ab23 Mon Sep 17 00:00:00 2001 From: Thomas Lambert <dev@tlambert.be> Date: Wed, 15 Mar 2023 13:44:20 +0100 Subject: [PATCH] doc(nacacamber): fix output details --- +af_tools/nacacamber.m | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/+af_tools/nacacamber.m b/+af_tools/nacacamber.m index 94ec3b8..ab13a45 100644 --- a/+af_tools/nacacamber.m +++ b/+af_tools/nacacamber.m @@ -6,13 +6,13 @@ function [coord, gradY] = nacacamber(varargin) % ----- % % Usage: - % [X, Y] = NACACAMBER prompts the user for the airfoil digits, then calculates the coordinates - % of the camberline using 100 points spaced with the half-cosine rule. + % [coord, gradY] = NACACAMBER prompts the user for the airfoil digits, then calculates the + % coordinates of the camberline using 100 points spaced with the half-cosine rule. % - % [X, Y] = NACACAMBER(DIGITS) calculates the coordinates of the camberline for the NACA - % airfoil specified by DIGITS, without further input. + % [coord, gradY] = NACACAMBER(DIGITS) calculates the coordinates of the camberline for the + % NACA airfoil specified by DIGITS, without further input. % - % [X, Y] = NACACAMBER(DIGITS, NPOINTS) calculates the coordinates of the NACA airfoil + % [coord, gradY] = NACACAMBER(DIGITS, NPOINTS) calculates the coordinates of the NACA airfoil % specified by DIGITS, using NPOINTS points spaced with the half-cosine rule. % % [...] = NACACAMBER(..., 'spacing', SP) uses the defined spacing rule to determine to @@ -20,14 +20,14 @@ function [coord, gradY] = nacacamber(varargin) % 'linear' - linear % 'halfcosine' - (default) finer at leading and trailing edges % 'cosine' - finer at leading edge, coarser at the trailing edge + % 'sine' - finer at trailing edge, coarser at the leading edge % % Inputs: % digits : Character vector representing the NACA airfoil (ex: '0012', '24120', '24012') % nPoints : Number of output coordinates % % Output: - % xc : Camberline X coordinates (0 <= X <= 1) - % yc : Camberline Y coordinates + % coord : Camberline coordinates [nPts x 2] % gradY : Gradient of Y (required to get the whole airfoil coordinates) % % Example: @@ -41,7 +41,7 @@ function [coord, gradY] = nacacamber(varargin) % <a href="https://gitlab.uliege.be/am-dept/matlab_airfoil_toolbox">Documentation (online)</a> % ------------------------------------------- - % (c) Copyright 2022 University of Liege + % (c) Copyright 2022-2023 University of Liege % Author: Thomas Lambert <t.lambert@uliege.be> % ULiege - Aeroelasticity and Experimental Aerodynamics % MIT License -- GitLab