how do i set a value to be less than something?

3 views (last 30 days)
for example i want x<10 so how would i assign values to x to equal values from 0 to less than 10?
  6 Comments
Walter Roberson
Walter Roberson on 2 Nov 2018
X =
typecast(typecast(1,'uint64'):typecast(10,'uint64') - 1, 'double') ;
would be the complete list of floating point values starting from 1.0 and ending at the last possible one before 10.0 . As Guillaume indicates, that would be 104 petabytes, when petabytes is used in the sense of 2^50 bytes (2^10 = kilobyte, 2^20 = megabyte, 2^30 = gigabyte, 2^40 = terabyte). Other people would say that petabytes should be considered based upon decimal, e.g., that 10^3 = kilo, 10^6 = mega, 10^9 = giga, 10^12 = tera, 10^15 = peta): with that measurement it would be about 117 of that kind of petabytes.
Image Analyst
Image Analyst on 27 Nov 2018
Original question:
for example i want x<10 so how would i assign values to x to equal values from 0 to less than 10?
so it will be here when he tried to edit it away.

Sign in to comment.

Answers (1)

Walter Roberson
Walter Roberson on 2 Nov 2018
Edited: Walter Roberson on 2 Nov 2018
X =
typecast(uint64(0):typecast(10,'uint64') - 1, 'double') ;
This will require a system with approximately 50 exabytes of memory, but Yes, it can be done. You just have link together 300 of the HP systems that are the largest publically known in the world at 160 terabytes each.
  2 Comments
Walter Roberson
Walter Roberson on 2 Nov 2018
Correction: it looks like you might only need about 19 exabytes.
Walter Roberson
Walter Roberson on 2 Nov 2018
Ah, I was off by a factor of 1000: you would have to link together about 28887 of the 160 terabyte systems. This is huge and very very expensive, but it appears that it would be within human manufacturing capabilities. https://www.emc.com/leadership/digital-universe/2014iview/executive-summary.htm

Sign in to comment.

Tags

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!