Re: Multiplying by a random number
- From: Walter Roberson <roberson@xxxxxxxxxxxx>
- Date: Fri, 29 Aug 2008 20:19:07 GMT
Abder-Rahman wrote:
In this MATLAB command:
tr = unit8(r.*double(not(t));
That would be uint8 instead of unit8
Provided that (r) is:
r = rand(256)*128+127;
What is the purpose of multiplying by (r)?
We don't know, we didn't write the code and you haven't given us
any context for what the routine is intended to do.
Likely the purpose hasn't changed since you last asked about this
block of code and I explained in detail exactly what it was doing
(but not why it was doing it.) (Others offered explanations as well,
but mine was the only one that expanded on the meaning of the
double(not(t)) if I recall correctly.)
--
Q = quotation(rand);
if isempty(Q); error('Quotation server filesystem problems')
else sprintf('%s',Q), end
.
- References:
- Multiplying by a random number
- From: Abder-Rahman
- Multiplying by a random number
- Prev by Date: Multiplying by (r)
- Next by Date: Re: Multiplying by (r)
- Previous by thread: Multiplying by a random number
- Next by thread: Re: Multiplying by a random number
- Index(es):
Relevant Pages
|