Problem 3064. Cycling — Normalized Power
Solution Stats
Problem Comments
-
1 Comment
Richard Livingston
on 27 Apr 2018
I don't understand what I'm looking at, Ive attempted to add the code from a solution, but it seems like I'm missing something crutial...
function [P_avg,NP] = cycling_norm_power(power)
P_avg = 0;
NP = 0;
%% steady
power = 200*ones(1,3600);
P_avg_corr = 200;
NP_corr = 200;
[P_avg,NP] = cycling_norm_power(power);
assert(isequal(P_avg_corr,P_avg))
assert(isequal(NP_corr,NP))
Solution Comments
Show commentsProblem Recent Solvers35
Suggested Problems
-
6574 Solvers
-
Least common multiple of many numbers
219 Solvers
-
The sum of the numbers in the vector
547 Solvers
-
634 Solvers
-
There are 10 types of people in the world
841 Solvers
More from this Author139
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!