Search
Code Directory
 ASP
 ASP.NET
 C/C++
 CFML
 CGI/PERL
 Delphi
 Development
 Flash
 HTML
 Java
 JavaScript
 Pascal
 PHP
 Python
 SQL
 Tools
 Visual Basic & VB.NET
 XML
New Code
Spire.PDF for Java 2.7.8
Database Workbench Pro 5.6.10.0
The C# PDF Library 2020.1.5
CAD-Viewer 3DVBVIEW V4
dotConnect for SQLite 5.15
LuaStudio 9.92
EntityDAC 2.3
Devart ODBC Driver for QuickBooks 2.0
phpEnter 5.1.
Udemy Clone script 2.01
VisualNEO Web 19.11.7
VisualNEO for Windows 19.4.29.0
SentiVeillance SDK Trial 7.3
Devart ODBC Driver for PostgreSQL 3.2
SecureBridge 9.2
Top Code
SecureBridge 8.0
dotConnect for SQLite 5.9
EntityDAC 1.6
Database Workbench Pro 5.6.10.0
ATN Site Builder 3.0
ATN Resume Finder 2.0
The C# PDF Library 1.0
Devart ODBC Driver for PostgreSQL 3.2
Aglowsoft SQL Query Tools 8.2
Classified Ad Lister 1.0
Solid File System OS edition 5.1
ADO.NET Provider for ExactTarget 1.0
Deals and Discounts Website Script 1.0.2
SentiVeillance SDK Trial 7.3
A-star Search Algorithm 1.1
Top Rated
phpEnter 5.1.
Single Leg MLM 1.2.1
Azizi search engine script PHP 4.1.10
Paste phpSoftPro 1.4.1
Extreme Injector 3.7
Deals and Discounts Website Script 1.0.2
ADO.NET Provider for ExactTarget 1.0
Solid File System OS edition 5.1
Classified Ad Lister 1.0
Aglowsoft SQL Query Tools 8.2
Invoice Manager by PHPJabbers 3.0
ICPennyBid Penny Auction Script 4.0
PHP Review Script 1.0
ATN Resume Finder 2.0
ATN Site Builder 3.0
Trim leading/trailing repeated values 1.0
File ID: 91518






Trim leading/trailing repeated values 1.0
Download Trim leading/trailing repeated values 1.0http://www.mathworks.com/Report Error Link
License: Freeware
File Size: 92.2 KB
Downloads: 2
Submit Rating:
Trim leading/trailing repeated values 1.0 Description
Description: Trims leading/trailing repeated values of a series of numbers

TRIMREPLT(IN) Single input syntax
- In : numeric vector/2D matrix

TRIMREPLT(IN, DIM) Trims along the dimension specified by dim
- dim : scalar, numeric and integer value (or empty)
1 --> trims columnwise (DEFAULT)
2 --> trims row-wise

TRIMREPLT(IN, DIM, MODE) Which side to trim
- mode : char (or empty)
'l' --> trim leading repeated values
't' --> trim trailing repeated values (DEFAULT)
'lt'--> trim both sides

OUT = ...
- Same class/size as In. Leading/trailing repeated values (according to 'mode' argument)
are replaced with NaN values.
Given a vector IN and MODE = 't', IN(x+1) is considered a repeated value of IN(x) only
if IN(x+1:end) == NANMEAN(IN(x+1:end)).
The value IN(x) will be left unchanged.

See attahced image for examples.

Comments/suggestions/error reports are welcome.

p6v1.1

License: Freeware

Related: leadingtrailing, Mode, argument, replaced, classsize, sidesout, leading, 039t039, trailing, 039lt039gt, Vector, Image, examplescommentssuggestionserror, Reports, welcomep, attahced, unchangedsee, inx

O/S:BSD, Linux, Solaris, Mac OS X

File Size: 92.2 KB

Downloads: 2



More Similar Code

REPVAL Repeated Values
repval(X) finds all repeated values for input X, and their attributes.
The input may be vector, matrix, char string, or cell of strings

Y=repval(X) returns the repeated values of X

[RV, NR, POS, IR]=repval(X) returns the following outputs
RV : Repeated Values (sorted)
NR : Number of times each RV was repeated
POS : Position vector of X of RV entries
IR : Index of...



This is an easy script which eliminates any extra leading spaces entered inside a textbox.



Learn how to work with strings. Upper, lower and sentence case. Concatenate. Trim leading and/or trailing space.



Trims options out of CCK select boxes.

The 2.0 version for D6 works with the following field types (all select widgets):
Text
Number (integer, float, decimal)
Nodereference
Userreference
Rolereference



an perform a mixed-model ANOVA on simple designs with one between-subjects factor and one within-subjects (repeated-measures) factor and either display a results table or simply return the values within.

See comments at top of file for...



Find sequences of repeated (adjacent/consecutive) numeric values. Finds sequences of NaNs and Infs too.

SYNTAXES:
(1) FINDSEQ(A) Find sequences of repeated numeric values in A along the first non-singleton dimension. A shuld be a...



A super-easy script which eliminates any extra trailcript whis entered inside a textbox.

To check it out in action, try entering a few spaces after the text in the box.



Calculates the number of trailing zeroes on the end of x! when the user inputs x.



Values selected from the drop-down box appear in the text area below.

As more items are selected they are added to the list.



You've probably seen this feature inside the comment forms of blogs, where a checkbox lets you specify whether to remember the values of certain text fields and recall them later. Well, this script adds such a feature to any form! The script...

User Review for Trim leading/trailing repeated values
- required fields
     

Please enter text on the image