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 Solvers36
Suggested Problems
-
7249 Solvers
-
249 Solvers
-
Reverse the elements of an array
971 Solvers
-
308 Solvers
-
703 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!