from
Machine Vision System - Color Recognition
by Vihang Patil
This gui is a demonstration on the concept of machine vision system for color recognition
|
| random_integer_generator(int_from,int_to,no_of_integers)
|
function output = random_integer_generator(int_from,int_to,no_of_integers)
%This function generates a unique row of random integer numbers specified in the
%variables from int_from to int_to
%EX:
% val = random_integer_generator(1,30,10);
%This will generate 10 unique random numbers in the range of 1 to 30
output = randperm(int_to - int_from +1) - 1 ;
output = int_from + output(1 : no_of_integers) ;
|
|
Contact us at files@mathworks.com