guess you mean minutes instead of seconds?
Hi, no I do mean seconds if you are referring to the constant, 29,476.8
I have readjusted it now so it is the correct value.
I believe you are always rounding up to the next highest integer rather than rounding to the nearest integer. In other words, you are using the ceil() function, not the round() function.
Hi Rick, yes you are quite right. I have made the correction as above. Thanks for your valuable input.
I believe your second test case is incorrectly rounding.
Yes, you were right with my earlier incorrect "note well" remark but now with corrected remark in place this test is valid. Sorry if it has put you off a bit. I guess other issues may come to light as well but I hope not.
DNA N-Gram Distribution
Test if a Number is a Palindrome without using any String Operations
Insert zeros into vector
07 - Common functions and indexing 1
construct matrix with identical rows
Flip the main diagonal of a matrix
Create a square matrix of multiples
Find the Kronecker Tensor Product without using KRON
Pythagorean perfect squares: find the square of the hypotenuse and the length of the other side
Find the largest value in the 3D matrix
Find the treasures in MATLAB Central and discover how the community can help you!
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