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
-
792 Solvers
-
496 Solvers
-
Arrange vector in ascending order
740 Solvers
-
Replace multiples of 5 with NaN
420 Solvers
-
Matlab Basics - Assigning Variables
187 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!