Unitize (3by1 vector)

User created GMAT Functions that enhance the GMAT experience. Feel free to add functions that can help the community.

Unitize (3by1 vector)

Postby space_egd » Tue Mar 09, 2010 2:16 am

GMAT Function name: unitize3by1.gmf
Summary: Unitizes a 3 by 1 array of numbers
Latest Compatible Source code date: 12/23/2009
Depends on the following GMAT functions: mag3by1.gmf
Function inputs:
  1. 3x1 array
Function Outputs:
  1. 3x1 array
Script Syntax:
Code: Select all
[out1] = unitize3by1(in1)

Examples from calling script:
Code: Select all
% Object Creation
Create Array in1[3,1] out1[3,1];

% Begin Mission Sequence
EndScript; % Ensures start of mission sequence in main script

in1(1,1) = 4;
in1(2,1) = -2;
in1(3,1) = 1;

[out1] = unitize3by1(in1); % Call GMAT Function
(289 Bytes) Downloaded 293 times
Posts: 357
Joined: Sun Jun 08, 2008 9:02 pm
Location: MD

Return to User GMAT Functions

Who is online

Users browsing this forum: No registered users and 1 guest