Problem 1724. Calculate the peak value of square wave
Solution Stats
Problem Comments
-
2 Comments
Matthew Eicholtz
on 19 Jul 2013
I think the answers in the test suite may be incorrect. Regardless, please make the test suite more robust.
yurenchu
on 14 Aug 2017
I think the answers in your test suite are incorrect. If "peak value of a sine wave" (X) and "peak value of a square wave" (Y) are understood to be defined consistently, then (given equal RMS voltage) Y should be found as "X divided by sqrt(2)", not as "X multiplied by sqrt(2)".
Problem Recent Solvers71
Suggested Problems
-
Remove any row in which a NaN appears
7652 Solvers
-
2236 Solvers
-
Back to basics 25 - Valid variable names
303 Solvers
-
We love vectorized solutions. Problem 1 : remove the row average.
682 Solvers
-
ベクトル [1 2 3 4 5 6 7 8 9 10] の作成
384 Solvers
More from this Author9
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!