Code covered by the BSD License  

Highlights from
Reverse Token Order

Be the first to rate this file! 0 Downloads (last 30 days) File Size: 1.13 KB File ID: #25474

Reverse Token Order

by Siddharth Shankar

 

02 Oct 2009 (Updated 05 Oct 2009)

Reverse the order of words in a string.

| Watch this File

File Information
Description

This function reverses the order of words in a string. This function is not to be confused with FLIPLR which flips the left-right order of characters in a string.

For example:

reverseTokenOrder('Accelerating the pace of engineering and science')

ans =

 science and engineering of pace the Accelerating

MATLAB release MATLAB 7.9 (2009b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Updates
05 Oct 2009

Added copyright notices.

Tag Activity for this File
Tag Applied By Date/Time
string reverse tokens Siddharth Shankar 05 Oct 2009 11:15:40
string manipulation Siddharth Shankar 06 Oct 2009 15:55:36

Contact us at files@mathworks.com