"The hard way to go about it, but it worked like a charm!" :-)
If you think this one is ugly (and I agree 100% it is!) you should have seen my first few attempts, which included using "typecast" to get the numbers as uint64s and trying to compare them that way. At least this one worked...eventually.
James, actually, it's interesting on Cody to get to see things from another point of view. Kudos for original thinking :-) —DIV
Read a column of numbers and interpolate missing data
Project Euler: Problem 1, Multiples of 3 and 5
Create a matrix from a cell
Divisible by 2
Curve fitting (linear functions) & function handles
Anyone for tennis? Your chances of winning a (standard) game
Just take it easy for a second or two!
Arrange the names in alphabetical order (1)
Comparison of floating-point numbers (singles)
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office