Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.357.529 Times

CounterInBase: Counting in arbitrary base 1.0

  Date Added: July 19, 2013  |  Visits: 193

CounterInBase: Counting in arbitrary base

Report Broken Link
Printer Friendly Version


Product Homepage
Download (43 downloads)



A simple pseudo-class (using function handles and nested functions) representing a counter in an arbitrary base. Useful e.g. for enumerating numbers in certain base.c = CounterInBase(3) Creates a new counter with base 3 and resets its state to 0.c.next(), orc.next(1) Returns the state of the counter and increments it by 1.c.next(0) Returns the state of the counter and does not change its state.c.next(20) Returns a matrix of the next 20 numbers and advances the state of the counter by 20.c.save('filename') Saves the counter state to disc. If no filename is given, it uses the default name 'CounterInBaseState'.c.load('filename') Loads the previously stored counter state from disc. If no filename is given, it loads from file with the default name 'CounterInBaseState'. NOTE: To be able to call the c.load() method, the counter must first exist: c.load() must be preceded by the call to c = CounterInBase(x), i.e. the c counter may be in any state with any base.Example: >> c = CounterInBase(3); >> c.next() ans = 0 >> c.next() ans = 1 >> c.next() ans = 2 >> c.next() ans = 1 0 >> c.next(3) ans = 1 1 1 2 2 0 >> c.next(4) ans = 0 2 1 0 2 2 1 0 0 1 0 1 >> c.next(0) ans = 1 0 2 >> c.next(0) ans = 1 0 2

Requirements: No special requirements
Platforms: Matlab
Keyword: Advances Cloadfilename Counterinbasestate Csavefilename Default Filename Loads Matrix Saves
Users rating: 0/10

License: Shareware Size: 30.72 KB
USER REVIEWS
More Reviews or Write Review


COUNTERINBASE: COUNTING IN ARBITRARY BASE RELATED
Communication  -  HistConnect 1.0
This Function HistConnect will make a smooth histogram for a signal or image consisting of a few samples. The function assumes correlation between the samples, and implicitly generates new linear-interpolated samples between the originate samples....
10 KB  
Link Indexing  -  Site Index for Scripts 1.0
Site Index will spider website and extract all anchor links from all webpages. It can also extract titles and plain text.URL ReductionYou might be astonished at how many ways there are to refer to the same location on the web. Here are just a few...
10 KB  
Network & Internet  -  django-scrup 0.1
django-scrup is a Django-based web receiver for Scrup which stores screencaptures on S3. Installation: Getting django-scrup can be as easy as: pip install django-scrup in your favorite shell.
10.24 KB  
Development Tools  -  Text Menu Prompt 1.0
TXTMENU is similar to the built-in Matlab function MENU but has the following changes to make navigation around menus faster:1. The menu is text-based in the command window so time isn't wasted generating a GUI menu and the user does not have to...
10 KB  
Games  -  DataMonster 0.99.6
DataMonster is a console based application for managing data for d20 D&D games. Goals include monster generation, xp calculator, game time/calendar and combat manager. Whats New in This Release: - The xp returned from the calc command was...
450.56 KB  
Libraries  -  SWF::Builder::Character::Sound 0.15
SWF::Builder::Character::Sound is a SWF Sound character. SYNOPSIS my $sound = $mc->new_sound( ring.mp3 ); $sound->play; This module creates SWF sound characters from MP3 or raw Microsoft WAV files. $sound = $mc->new_sound( $filename )...
163.84 KB  
Libraries  -  OraTau PLD Plugin 1.3
OraTau PLD Plug-in is Allround Automations PL/SQL Developer plugin. The plugin aims to higher simplification and increase of productivity and comfort while working with RDBMS Oracle via PL/SQL Developer. Key features: - "OraTau Logon"...
3.89 MB  
Image Galleries  -  Pigalle 0.76a 1.0
Pigalle (PIcture GALLEry) is a slick web based photo album written in PHP 5. With Pigalle you can easily create and maintain albums of photos via an intuitive interface. A great combination of simplicity and powerful features!You just upload your...
 
Development Tools  -  crop whitespace from an image 1.0
CROP('filename.ext') crops the image in the file and saves it using the original filename (overwrites the old image). The extension (ext) can be anything IMREAD supports. CROP('filename.ext',1) saves the cropped image as filenamecropped.ext in the...
10 KB  
Development Tools  -  ReadLeCroyBinaryWaveform.m 1.0
Reads LeCroy binary waveforms. Based on file by user "Alan":http://www.mathworks.com/matlabcentral/fil...inarywaveform-mModified to support sequence acquisition mode, including trigger time tags. Tested on files generated by a WavePro 7 Zi.%...
10 KB  
NEW DOWNLOADS IN SCRIPTS, DEVELOPMENT TOOLS
Scripts  -  Freelancer Script 5.05
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Post projects. Featured projects. Private projects. Sealed projects. Edit/delete projects. Select freelancers....
5.49 MB  
Scripts  -  B2B Script 4.20
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Sign-up Account (Registration of account). Lead generation tools (for the sellers). Email verification to...
5.49 MB  
Scripts  -  B2C Script 5.06
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). The script comes with totally editable site colors, icons and graphics Multilevel categories allows extensive browsing Admin can change Category ordering or...
5.49 MB  
Scripts  -  Social Networking Script 2.86
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Registration with name, email, password, date of birth etc. User can add multiple school, college, university with start...
5.49 MB  
Scripts  -  Business Networking Script 8.04
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Ajax based interface. Profile creation. Different types of profile. Profile for jobseekers, employers and employed...
5.49 MB  
Development Tools  -  Aml2CHM 3.50
Those who use the popular Aml Pages text editor might be looking out for a way of generating help files from their text and notes. Aml2CHM is a plug-in that was developed to offer people a quick and efficient way of converting Aml Pages documents...
549.99 KB  
Development Tools  -  VMP Viewer 1.0
This is a very rudimentary tool to visualize the VMP files generated by BrainVoyager. Useful to share files with people who do not have BV.
10 KB  
Development Tools  -  Sending reports and timestamped file by emailing 1.0
main executing reference usage:[1] usage_send_mail.mIllustrates email sending with multiple separate files or single timestamped tar file. Attachment failure is properly handled, with continuation of report emailing without the attachment.[2]...
768 KB  
Development Tools  -  IrisMVC 2.0 rc1
IrisMVC is an OOP PHP framework that developers can use as a strong and secure foundation to build on various web applications following the Model-View-Controller (MVC) pattern. It provides the basic functionality developers need, without...
51.2 KB  
Development Tools  -  7-Zip for Script 4.42
7-Zip is a file archiver with a high compression ratio.Features:- High compression ratio in new 7z format with LZMA compression- Supported formats:- Packing / unpacking: 7z, ZIP, GZIP, BZIP2 and TAR- Unpacking only: RAR, CAB, ISO, ARJ, LZH, CHM,...
624.64 KB