Population growth
Assign finalPopulation with the population size given an initial population, population growth rate, and number of years. The fi...
9年弱 前
解決済み
Write an expression
Assigns finalResult with firstSample plus secondSample, squared, then divided by 3. Ex: If firstSample is 18 and secondSample is...
9年弱 前
解決済み
Add 7
Given an input variable x, output a variable y that is 7 greater than x.
Example:
Input x = 1
Output y is 8
Input ...
9年弱 前
問題
Xor of matrix
you have to set exclusive OR of two arrays
Connect blocks in a model
Connect the blocks in the model to produce the following signal:
<<http://blogs.mathworks.com/images/seth/cody/connect-blocks...
9年弱 前
解決済み
string comparision
compare two strings if both are same return 1 else return 0
9年弱 前
問題
string comparision
compare two strings if both are same return 1 else return 0
Rotate a Matrix
Input a Matrix x, Output y is the matrix rotating x 90 degrees clockwise
9年弱 前
解決済み
Back to basics 22 - Rotate a matrix
Covering some basic topics I haven't seen elsewhere on Cody.
Rotate the input matrix 90 degrees counterclockwise (e.g. [1 2; ...
Temperature conversion
Convert temperature in degrees Celsius (C) to temperature in degrees Kelvin (K). Assume your answer is rounded to the nearest Ke...
Count decimal digits of a number
* Given an integer number you have to return the number of its digits.
* For example 248 has 3 digits and 1589 has 4 digits
...
Sum of the Matrix Elements
Add up all the elements in a NxM matrix where N signifies the number of the rows and M signifies the number of the columns.
E...