Sum of diagonal of a square matrix
If
x = [1 2 4; 3 4 5; 5 6 7]
then y should be the sum of the diagonals of the matrix
y = 1 + 4 + 7 = 12
4年以上 前
解決済み
Decide whether determinant is zero.
Given a 3 x 3 matrix, find the determinant. Let y = true if the determinant is zero, and let y = false if the determinant is no...
The proportion of NaN in the data
If NaN occupies less than half of the input data, return 1,
otherwise return 0.
eg.
input x = [1 2 NaN ; 4 NaN 6] >>> out...
Try 1.5.4: Celsius to Fahrenheit
Write a program to convert an input given in Celsius to Fahrenheit.
Examples:
Input celsiusValue = 100
Output fahrValu...
4年以上 前
解決済み
Replace Nan!
Replace Nan in the given vector(v) with 9999.
More Simple String Concatenation
Take the first string input, reverse the order of the string from the end to beginning (i.e. apple becomes elppa), add a space a...
4年以上 前
解決済み
Even or Odd
Write a function which can tell us if the given value x is odd or even. So if x is even return true and if x is odd return false...