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
Rentonn - Airbnb clone 1.0
VisualNEO for Windows 18.08.31.0
SentiVeillance SDK Trial 7.0.191272
dbForge SQL Complete 6.1
Uber for E-Scooters 1.0
ODBC Driver for MySQL 2.4
dbForge Schema Compare for MySQL 4.4
dbForge Studio for MySQL 8.1
dbForge Query Builder for MySQL 4.4
dbForge Data Compare for MySQL 5.5
Aqua Data Studio 19.5
ConyEdit for Windows 1.1.1
GetOrgChart 2.5.3.0
Database Workbench Pro 5.6.0
.Net VCL for Delphi 1.0.0.0
Top Code
Panel Method Based 2-D Potential Flow Simulator 1.0
Simple Fuzzy Control Demonstration 1.0
VG CL Library 5.1
Open Tournament System 1.16.2
Insivia Content Management System
Online Vacation Rental Booking Website Script 4.3.0
Ticket Booking System 1.0
Ping Pong Game Code Script 1.1
MCU 8051 IDE 1.4.7
Bessel Derivative Zeros 1.0
Hotel Management - Full Board Version 6.55
Billing System 1.0.1
Simple Hill-Climbing 1.0
JLog/JScriptLog - Prolog in Java* rc
MLM Binary Plan Software 1.0.2
Top Rated
Paste phpSoftPro 1.4.1
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
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
PHP GZ Blog Script 1.1
ATN Jobs Software 4.0
ATN Mall 2.0
WeBuilder 2015 13.3
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: 1
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: 1



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