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
-
293 Solvers
-
Output any real number that is neither positive nor negative
377 Solvers
-
Create matrix of replicated elements
365 Solvers
-
134 Solvers
-
Find difference of two set as per example
82 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!