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.332.501 Times

Preferred Number Rounding 1.0

  Date Added: June 09, 2013  |  Visits: 312

Preferred Number Rounding

Report Broken Link
Printer Friendly Version


Product Homepage
Download (43 downloads)



Round the elements of a numeric input vector to the nearest "preferred number" values.Why This Function?Many parts and components in engineering and electronics are defined by "preferred value" or "preferred number" series. For example this includes the values of resistors, capacitors, inductors, screw sizes, metal thicknesses, motor ratings, cog teeth-count, etc. The results of your MATLAB calculations can use this function to automatically select the closest matching preferred values...Or maybe you want to create a histogram with non-equally spaced edges (unlike MATLAB's evenly spaced "hist")...Or maybe you need to round some numbers to arbitrary divisions, or want numbers that all start with the same digit/s...This function rounds the elements of a horizontal numeric vector to values chosen from a preferred number series. The input values must be real, positive and finite.The preferred number series may be one of:# Standard series (1-2-5, Renard and electronic IEC 60063 are inbuilt).# Custom series (repeating every decade, supplied as a numeric vector).# Custom function (function in one variable).### Examples ###prefnum([514,7.6,37,0.9],'E6') % Electronic E6 ans = [470,6.8,33,1]prefnum([514,7.6,37,0.9],'E12') % Electronic E12 ans = [560,8.2,39,0.82]prefnum([514,7.6,37,0.9],'R10') % Renard R10. ans = [500,8.0,40,1]prefnum([514,7.6,37,0.9],'R"5') % Renard R"5 ans = [600,6.0,40,1]prefnum([514,7.6,37,0.9],'125') % 1-2-5 ans = [500,10,50,1]prefnum([514,7.6,37,0.9],[25,75]) % Custom vector (two steps per decade) ans = [750,7.5,25,0.75]prefnum([514,7.6,37,0.9],1) % Custom vector (one step per decade, nearest order of magnitude) ans = [100,10,10,1]prefnum([514,7.6,37,0.9],@(x)2^x) % Custom function (nearest binary / power of two) ans = [512,8,32,1][A,B] = prefnum([5,300],'E12') % electronic E12 nearest to the integers 5 to 300 A = [4.7,330] B = [4.7,5.6,6.8,8.2,10,12,15,18,22,27,33,39,47,56,68,82,100,120,150,180,220,270,330][~,~,E,H] = prefnum(1:149,'125',0) % Draw histogram of integers 1 to 149, with unequally spaced edges.bar(H)L = arrayfun(@num2str,E,'UniformOutput',false)set(gca,'XTickLabel',strcat(L(1:end-1),'

Requirements: No special requirements
Platforms: Matlab
Keyword: Custom Decade Electronic Examples Prefnum Repeating Supplied Variable
Users rating: 0/10

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


PREFERRED NUMBER ROUNDING RELATED
MS Office Add-Ins  -  Excel Grade Book Template Software 7.0
This software offers a solution for people who want to create custom classroom electronic grade books in MS Excel. The created grade book can be easily edited and customized within Excel to achieve the perfect template to be used over and over...
1.65 MB  
Modules  -  Display Posts Shortcode 1.7
The Display Posts Shortcode was written to allow users to easily display listings of posts without knowing PHP or editing template files.Add the shortcode in a post or page, and use the arguments to query based on tag, category, post type, and...
10 KB  
Desktop Utilities  -  Xfce 4 Smartbookmark Plugin 0.4.2
Xfce 4 Smartbookmark Plugin was first written by Emanuele Rocca, but it was recently rewritten so that it now works with the new panel API. It allows you to send requests directly to your browser and perform a custom search. Some examples:...
358.4 KB  
Business  -  ChronoSlider (Lite) 1.0.1
ChronoSlider Lite is a nice tiny tool to help you manage alarms and timers with a single mouse click on a unique user interface. Set an alarm or timer by sliding your mouse across the screen and click once to confirm. The full version, which is...
204.8 KB  
Network & Internet  -  webapp2 2.5.1
webapp2 is an attempt to improve Google App Engine's webapp framework keeping maximum compatibility and same performance. Features (nutshell mode) Extreme compatibility: RequestHandler, Request, Response and URL...
194.56 KB  
Modules  -  Custom (Form) destination 6.x-1.6
Custom (Form) destination provides a way to define where a form should redirect the user upon submission.When you submit a form, Drupal deals with your input (saving your node, sending an email, storing a setting, etc..) and then redirect you to a...
10 KB  
Programming  -  Custom Cells 1.0
A listbox with custom cells. Allows you to have buttons, progressbars and just about anything you want inside a listbox cell. Includes examples for a progressbar cell, a "rating" cell, and a "buttons" cell.
40.96 KB  
Network & Internet  -  Ryans Electronic Diary Sheet 1.2.1
Ryans Electronic Diary Sheet (aka RyansEDS) is a web-based Perl application which allows members of an organization (typically staff) to inform each other of their proposed whereabouts. The project is designed to be a simple shared calendaring...
25.6 KB  
Development Editors  -  Collection of Delphi Examples 7
Collection of most wanted Delphi examples with full source code and animated tutorials as a standalone application. No third party components.
6.99 MB  
Screen Saver Creators  -  A3D Custom Screensaver 5.02
Create, Customize and Share your own unique 3D screensavers, and create 3D Slide shows, 3D Photo albums, 3D Presentations and many more. Features: 24 awesome 3d effects, screensaver creation wizard, imports easily custom images-videos-music's,...
3 MB  
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