<< Chapter < Page Chapter >> Page >

distinct.m function y = distinct(T) determines and sorts the distinct members of matrix T .

function y = distinct(T) % DISTINCT y = distinct(T) Disinct* members of T% Version of 5/7/96 Rev 4/20/97 for version 4&5.1, 5.2 % Determines distinct members of matrix T.% Members which differ by no more than 10^{-13} % are considered identical. y is a row% vector of the distinct members. TS = sort(T(:)');n = length(TS); d = [1 abs(TS(2:n) - TS(1:n-1))>1e-13];y = TS(find(d));
Got questions? Get instant answers now!

freq.m sorts the distinct members of a matrix, counts the number of occurrences of each value, and calculates the cumulative relativefrequencies.

% FREQ file freq.m Frequencies of members of matrix % Version of 5/7/96% Sorts the distinct members of a matrix, counts % the number of occurrences of each value, and% calculates the cumulative relative frequencies. T = input('Enter matrix to be counted ');[m,n] = size(T);[t,f] = csort(T,ones(m,n));p = cumsum(f)/(m*n); disp(['The number of entries is ',num2str(m*n),]) disp(['The number of distinct entries is ',num2str(length(t)),]) disp(' ')dis = [t;f;p]';disp(' Values Count Cum Frac') disp(dis)
Got questions? Get instant answers now!

dsum.m function y = dsum(v,w) determines and sorts the distinct elements among the sums of pairs of elements of row vectors v and w .

function y = dsum(v,w) % DSUM y = dsum(v,w) Distinct pair sums of elements% Version of 5/15/97 % y is a row vector of distinct% values among pair sums of elements % of matrices v, w.% Uses m-function distinct [a,b]= meshgrid(v,w); t = a+b;y = distinct(t(:)');
Got questions? Get instant answers now!

rep.m function y = rep(A,m,n) replicates matrix A , m times vertically and n times horizontally. Essentially the same as the function repmat in MATLAB version 5, released December, 1996.

function y = rep(A,m,n) % REP y = rep(A,m,n) Replicates matrix A% Version of 4/21/96 % Replicates A,% m times vertically, % n times horizontally% Essentially the same as repmat in version 5.1, 5.2 [r,c]= size(A); R = [1:r]'; C = [1:c]'; v = R(:,ones(1,m));w = C(:,ones(1,n)); y = A(v,w);
Got questions? Get instant answers now!

elrep.m function y = elrep(A,m,n) replicates each element of A , m times vertically and n times horizontally.

function y = elrep(A,m,n) % ELREP y = elrep(A,m,n) Replicates elements of A% Version of 4/21/96 % Replicates each element,% m times vertically, % n times horizontally[r,c] = size(A);R = 1:r; C = 1:c;v = R(ones(1,m),:); w = C(ones(1,n),:);y = A(v,w);
Got questions? Get instant answers now!

kronf.m function y = kronf(A,B) determines the Kronecker product of matrices A , B . Achieves the same result for full matrices as the MATLAB function kron .

function y = kronf(A,B) % KRONF y = kronf(A,B) Kronecker product% Version of 4/21/96 % Calculates Kronecker product of full matrices.% Uses m-functions elrep and rep % Same result for full matrices as kron for version 5.1, 5.2[r,c] = size(B);[m,n] = size(A);y = elrep(A,r,c).*rep(B,m,n);
Got questions? Get instant answers now!

colcopy.m function y = colcopy(v,n) treats row or column vector v as a column vector and makes a matrix with n columns of v .

function y = colcopy(v,n) % COLCOPY y = colcopy(v,n) n columns of v% Version of 6/8/95 (Arguments reversed 5/7/96) % v a row or column vector% Treats v as column vector % and makes n copies% Procedure based on "Tony's trick" [r,c]= size(v); if r == 1v = v'; endy = v(:,ones(1,n));
Got questions? Get instant answers now!

Questions & Answers

Is there any normative that regulates the use of silver nanoparticles?
Damian Reply
what king of growth are you checking .?
What fields keep nano created devices from performing or assimulating ? Magnetic fields ? Are do they assimilate ?
Stoney Reply
why we need to study biomolecules, molecular biology in nanotechnology?
Adin Reply
yes I'm doing my masters in nanotechnology, we are being studying all these domains as well..
what school?
biomolecules are e building blocks of every organics and inorganic materials.
anyone know any internet site where one can find nanotechnology papers?
Damian Reply
sciencedirect big data base
Introduction about quantum dots in nanotechnology
Praveena Reply
what does nano mean?
Anassong Reply
nano basically means 10^(-9). nanometer is a unit to measure length.
do you think it's worthwhile in the long term to study the effects and possibilities of nanotechnology on viral treatment?
Damian Reply
absolutely yes
how to know photocatalytic properties of tio2 nanoparticles...what to do now
Akash Reply
it is a goid question and i want to know the answer as well
characteristics of micro business
for teaching engĺish at school how nano technology help us
Do somebody tell me a best nano engineering book for beginners?
s. Reply
there is no specific books for beginners but there is book called principle of nanotechnology
what is fullerene does it is used to make bukky balls
Devang Reply
are you nano engineer ?
fullerene is a bucky ball aka Carbon 60 molecule. It was name by the architect Fuller. He design the geodesic dome. it resembles a soccer ball.
what is the actual application of fullerenes nowadays?
That is a great question Damian. best way to answer that question is to Google it. there are hundreds of applications for buck minister fullerenes, from medical to aerospace. you can also find plenty of research papers that will give you great detail on the potential applications of fullerenes.
what is the Synthesis, properties,and applications of carbon nano chemistry
Abhijith Reply
Mostly, they use nano carbon for electronics and for materials to be strengthened.
is Bucky paper clear?
carbon nanotubes has various application in fuel cells membrane, current research on cancer drug,and in electronics MEMS and NEMS etc
so some one know about replacing silicon atom with phosphorous in semiconductors device?
s. Reply
Yeah, it is a pain to say the least. You basically have to heat the substarte up to around 1000 degrees celcius then pass phosphene gas over top of it, which is explosive and toxic by the way, under very low pressure.
Do you know which machine is used to that process?
how to fabricate graphene ink ?
for screen printed electrodes ?
What is lattice structure?
s. Reply
of graphene you mean?
or in general
in general
Graphene has a hexagonal structure
On having this app for quite a bit time, Haven't realised there's a chat room in it.
what is biological synthesis of nanoparticles
Sanket Reply
how did you get the value of 2000N.What calculations are needed to arrive at it
Smarajit Reply
Privacy Information Security Software Version 1.1a
A fair die is tossed 180 times. Find the probability P that the face 6 will appear between 29 and 32 times inclusive
Samson Reply

Get the best Algebra and trigonometry course in your pocket!

Source:  OpenStax, Applied probability. OpenStax CNX. Aug 31, 2009 Download for free at http://cnx.org/content/col10708/1.6
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Applied probability' conversation and receive update notifications?