Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

strjustify (MathScript RT Module Function)

LabVIEW 2010 Help

Edition Date: June 2010

Part Number: 371361G-01

»View Product Info

Owning Class: string

Requires: MathScript RT Module

Syntax

c = strjustify(a, b)

Legacy Name: strjust

Description

Justifies strings.

Examples

Inputs

Name Description
a Specifies a string or character matrix.
b Specifies the direction of alignment. b is a string that accepts the following values.

'center' Aligns strings in the center.
'left' Aligns strings to the left.
'right' Aligns strings to the right.

Outputs

Name Description
c Returns a with the alignment you specify.

Examples

A = ['12345     '; '     abcde']
C = strjustify(A, 'center')

Related Topics

findstr
strcmp
strcmp_i
strfindall


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit