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

Choosse randomly number of elements from a vector 1.0

  Date Added: June 26, 2013  |  Visits: 496

Choosse randomly number of elements from a vector

Report Broken Link
Printer Friendly Version


Product Homepage
Download (48 downloads)



function [out]=random2(ini,fin,num)% Choosse randomly a number (num) of elements from a vector [ini:fin]% Randomly change the position of the vector. in pairs of twos%% Imput:% ini: Beginning of the vector% fin: End of the vector% nun: Number of elements to choose from the range of vector [ini:fin]%% Output% output vector%% Example%% [out]=random2(-20,20,10)%% out =% -1 5 18 -3 1 -17 15 7 3 -6%% [out]=random2(5,50,10)%% out =% 29 19 20 47 43 18 14 48 23 28vr=ini:fin; % Reference Vectorlon=fin-ini; % variation or range of the vectorfor nv=1:5*length(vr) % vector length. p1=ceil(lon*rand); % randomly chooses position to move. p2=ceil(lon*rand); % randomly selects the position where it is going to move. tp=vr(p1); % temporal position. vr(p1)=vr(p2); % Change inicial by end position. vr(p2)=tp; % Change end by inicial position.end out=vr(1:num); % output vector

Requirements: No special requirements
Platforms: Matlab
Keyword: Chooses Dceillonrand Dinifin Length Lengthvr Lon Dfinini Reference Variation Vector
Users rating: 0/10

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


CHOOSSE RANDOMLY NUMBER OF ELEMENTS FROM A VECTOR RELATED
Libraries  -  CGI_Lite 1.8
CGI_Lite is a Perl module to process and decode WWW forms and cookies. SYNOPSIS use CGI_Lite; $cgi = new CGI_Lite; $cgi->set_platform ($platform); where $platform can be one of (case insensitive): Unix, Windows, Windows95, DOS, NT, PC,...
14.34 KB  
Multimedia  -  2D Vector Field Visualization 1.0
The files in this package comprise two Matlab functions that createvisualizations of 2D vector fields.cquiver renders a vector field as a grid of unit-length arrows. The arrow direction indicates vector field direction, and the color indicates the...
10 KB  
Education  -  Vector Addition with Integer Components 1.0
This simulation offers beginning students practice in two-dimensional vector addition. It is relatively simple, as the x and y components of each vector are integers. Given the magnitude and direction of two vectors, students must determine the x...
1.35 MB  
Education  -  LON-CAPA 2.4.2 / 2.4.99.0
LON-CAPA is an Open Source Freeware Distributed Learning Content Management and Assessment System. LON-CAPA is a full-featured, web-based course management system similar to commercial systems, see edutools.info for comparisons.. The...
 
MP3 Tools  -  Song Length Finder 1
The Song Length Finder is a quick and easy tool that lets you search your music collection for songs of a certain length. Maybe you have a music compilation CD that you have to fill the last 5 minutes of. Maybe there's a movie scene that is...
187.49 KB  
Libraries  -  PNG reference library 1.5.6 Beta 6 / 1.5.5
Reference library for supporting the Portable Network Graphics (PNG) format. Now you have all the information related to the PNG image format at your disposal. PNG is built to be a bitmapped image format that supports lossless data compression.
 
Education  -  HTML Quick Reference Guide 2.0.0
Multimedia Australia's HTML Quick Reference Guide provides an overview of the most commonly used HTML elements, and includes useful CSS (Cascading Style Sheet) properties. The guide has been conveniently designed as a one-page document, making it...
124 KB  
Modules  -  Field Reference 5.x-1.1-beta1 1.0
It is similar in concept with the Node Reference module, but unlike Node Reference, this module only references a node field. The referenced field gets injected into the referring node.InstallationUnpack in your modules folder (usually...
 
Modules  -  Role Reference 1.0
It is similar in concept with the Node Reference module, but unlike Node Reference, this module only references a user role.InstallationUnpack in your modules folder (usually /sites/all/modules/) and enable under Administer > Site Building >...
 
Modules  -  State Reference 1.0
It is similar in concept with the Node Reference module, but unlike Node Reference, this module only references workflow states.InstallationUnpack in your modules folder (usually /sites/all/modules/) and enable under Administer > Site Building >...
 
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