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
Excel Add-in for DB2 1.7
wolfSSL 4.0.0
EntityDAC Express 2.2
SecureBridge 9.1
C# HTML to PDF 2019.6.5
PHP Ecommerce Script 3.6
Devart SSIS Data Flow Components 1.11
dbForge Data Compare for PostgreSQL 3.2.15
OrgChart JS 4.9.7
iScripts CyberMatch 1.3.3
AnyGantt JS Gantt Charts 8.7.0
Database Workbench Pro 5.6.8
SentiMask SDK Trial 2.0.193121
dbForge Studio for SQL Server 5.8
ODBC Driver for ASE 2.1.2
Top Code
iScripts CyberMatch 1.3
dbForge Data Compare for PostgreSQL 2.0
SecureBridge 8.0
dbForge Studio for SQL Server 5.5
Database Workbench Pro 5.6.8
PHP Ecommerce Script 1.0.4
ATN Site Builder 3.0
Availability Booking Calendar PHP 1.0
ATN Resume Finder 2.0
Excel Add-in for DB2 1.1
PHP Review Script 1.0
ICPennyBid Penny Auction Script 4.0
EntityDAC Express 2.2
Hide Your Source Code
Compiling Components in Visual Basic for ASP
Top Rated
VisualNEO Web 2018.12.15
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
Availability Booking Calendar PHP 1.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