<< 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

where we get a research paper on Nano chemistry....?
Maira Reply
what are the products of Nano chemistry?
Maira Reply
There are lots of products of nano chemistry... Like nano coatings.....carbon fiber.. And lots of others..
learn
Even nanotechnology is pretty much all about chemistry... Its the chemistry on quantum or atomic level
learn
Google
da
no nanotechnology is also a part of physics and maths it requires angle formulas and some pressure regarding concepts
Bhagvanji
Preparation and Applications of Nanomaterial for Drug Delivery
Hafiz Reply
revolt
da
Application of nanotechnology in medicine
what is variations in raman spectra for nanomaterials
Jyoti Reply
I only see partial conversation and what's the question here!
Crow Reply
what about nanotechnology for water purification
RAW Reply
please someone correct me if I'm wrong but I think one can use nanoparticles, specially silver nanoparticles for water treatment.
Damian
yes that's correct
Professor
I think
Professor
Nasa has use it in the 60's, copper as water purification in the moon travel.
Alexandre
nanocopper obvius
Alexandre
what is the stm
Brian Reply
is there industrial application of fullrenes. What is the method to prepare fullrene on large scale.?
Rafiq
industrial application...? mmm I think on the medical side as drug carrier, but you should go deeper on your research, I may be wrong
Damian
How we are making nano material?
LITNING Reply
what is a peer
LITNING Reply
What is meant by 'nano scale'?
LITNING Reply
What is STMs full form?
LITNING
scanning tunneling microscope
Sahil
how nano science is used for hydrophobicity
Santosh
Do u think that Graphene and Fullrene fiber can be used to make Air Plane body structure the lightest and strongest. Rafiq
Rafiq
what is differents between GO and RGO?
Mahi
what is simplest way to understand the applications of nano robots used to detect the cancer affected cell of human body.? How this robot is carried to required site of body cell.? what will be the carrier material and how can be detected that correct delivery of drug is done Rafiq
Rafiq
if virus is killing to make ARTIFICIAL DNA OF GRAPHENE FOR KILLED THE VIRUS .THIS IS OUR ASSUMPTION
Anam
analytical skills graphene is prepared to kill any type viruses .
Anam
Any one who tell me about Preparation and application of Nanomaterial for drug Delivery
Hafiz
what is Nano technology ?
Bob Reply
write examples of Nano molecule?
Bob
The nanotechnology is as new science, to scale nanometric
brayan
nanotechnology is the study, desing, synthesis, manipulation and application of materials and functional systems through control of matter at nanoscale
Damian
Is there any normative that regulates the use of silver nanoparticles?
Damian Reply
what king of growth are you checking .?
Renato
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
?
Kyle
yes I'm doing my masters in nanotechnology, we are being studying all these domains as well..
Adin
why?
Adin
what school?
Kyle
biomolecules are e building blocks of every organics and inorganic materials.
Joe
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?

Ask