Skip to content

rks/left-pad-toolbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeftPad Toolbox

String left-padding for MATLAB.

LeftPad Toolbox logo

Install

Manual install

Clone the git repository.

git clone https://github.com/rks/left-pad-toolbox.git

Add the tbx/doc and tbx/leftpad directories to your MATLAB path.

addpath 'path-to-cloned-code/tbx/doc'
addpath 'path-to-cloned-code/tbx/leftpad'

Use

>> leftpad('Hello!', 10)
ans =

    Hello!
>> leftpad('Hello!', 10, '+')
ans =

++++Hello!

Run the tests

From the project's root:

>> run 'tests/runner'