You forget to divide by 60
I think there is a 2 missing in one of the answers...they are not consistent...
@Dan- Yes, Thanks.
@Claudio - For specific formula, answers are consistent but correct final answer in both cases should be divided by 60 as Dan mentioned.
fomula's unit was wrong,and precision is harsh.why don't you guys use tolerence?
Problem statement is corrected to adjust for units.
Additional test cases with tolerance based test suite are added.
I believe the test cases give the power in Joules/minute, rather than the requested units of kW.
The test suite is generating wrong answers!!
Test suite answers need to be /60 and are in watts, not kW.
Back to basics 8 - Matrix Diagonals
How many monitors are connected ?
Calculate the height of an object dropped from the sky
Speed of car
Basics: Divide integers to get integer outputs in all cases
Saving MATLAB session to a file
Create Volcano (or Atoll) martix. It is an extension of Bullseye matrix problem.
Mirror Image matrix across anti-diagonal
Who has power to do everything in this world?
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