Cody Matlab Version
What is the current Cody Matlab Release?
*Output:* string
*Examples:*
'(R2012a)' or 'R2012a'
Hint: We have mo...
6ヶ月 前
解決済み
Initialize a Natural Number matrix.
Given length of matrix initialize a matrix consisting of natural numbers from 1 to n:
n = 10;
x = [ 1 2 3 4 5 6 7 8 9 10];
...
Create a constant offset.
Add a constant offset to an array.
Example
a = [1 3 5 9]
offset = 2
y = [3 5 7 11]
6ヶ月 前
解決済み
The Five Infection (Boss Level)
Given a 3x3 matrix A, replace:
every value that is equal to five
every value that is directly adjacent to a five
with zero in...
Calculating Swimming Stroke Index (SI)
In competitive swimming, speed () is only one part of the equation. High efficiency is defined by moving fast while maintaining ...
6ヶ月 前
解決済み
GJam: 2013 China Event: Cannon Angle
This Challenge is derived from <http://code.google.com/codejam/contest/2933486/dashboard#s=p1 GJam 2013 China Captain Hammer>. T...
Chess ELO rating system
The Elo rating system is a method for calculating the relative chess skill levels of players in competitor-versus-competitor gam...
6ヶ月 前
解決済み
Battery Charge Efficiency Calculation
In a Battery Management System (BMS), the efficiency of battery charging can be estimated using the formula:
where:
is the...
Most nonzero elements in row
Given the matrix a, return the index r of the row with the most nonzero elements. Assume there will always be exactly one row th...
Back to basics 6 - Column Vector
Covering some basic topics I haven't seen elsewhere on Cody.
Given an input vector, output true or false whether it is a colu...