No BSD License  

Highlights from
instrrev/strrevfind

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

instrrev/strrevfind

by Tseviet Tchen

 

20 Feb 2007 (Updated 20 Feb 2007)

Find character in string from EOS (right-hand end)

| Watch this File

File Information
Description

From the string end (ie right-hand-side) finds position of the kth character matching the specified pattern.

Syntax: INSTRREV (string, pattern, [right_match_count])

Returns:
- matching position if found match
- 0 otherwise

Returns first matching position if no right_match_count specified.

NB: function name inspired from VBS. Could be renamed "strrevfind.m" to fit Matlab nomenclature. Let me know what you think.

Acknowledgements
This submission has inspired the following:
Manchester
MATLAB release MATLAB 6.5.1 (R13SP1)
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.
Tag Activity for this File
Tag Applied By Date/Time
strings Tseviet Tchen 22 Oct 2008 09:01:12
reverse Tseviet Tchen 22 Oct 2008 09:01:12
find Tseviet Tchen 22 Oct 2008 09:01:12
character Tseviet Tchen 22 Oct 2008 09:01:12
eos Tseviet Tchen 22 Oct 2008 09:01:12
utilities Tseviet Tchen 22 Oct 2008 09:01:12
string manipulation Tseviet Tchen 22 Oct 2008 09:01:12

Contact us at files@mathworks.com