Feeds
已解决
Sum of odd numbers in a matrix
Find the sum of all the odd numbers in a matrix. Example x = [2 3 5 7 1 4 11] y = 27
3 years 前
已解决
Determine whether the number is multiple of 3 or not
Let a=6 and as 6 = 2*3 which means 6 is multiple of 3; return true if a is multiple of 3,otherwise false.
3 years 前
已解决
Velocity Conversion
Given a velocity in mph, convert it to km/h. Round the answer to the fourth decimal place.
3 years 前
已解决
Output any real number that is neither positive nor negative
Output any real number that is neither positive nor negative
3 years 前
已解决
multiply by three
Given the variable x as your input, multiply it by 3 and put the result equal to y. Examples: Input x = 2 Output y is ...
3 years 前
已解决
Calculate the average value of the elements in the array
Calculate the average value of the elements in the array
3 years 前
已解决
the average value of the elements
Calculate the average value of the elements in the array
3 years 前
已解决
All odd - all even
All odd numbers in x are added, while all even numers are subtracted from this. example: x = [1 2 3 4 5]; y = +(1+3+5)-...
3 years 前
已解决
Make an identity matrix whose diagonal elements are 1:n
For a given input n, make an n by n identity matrix that contains the elements 1:n along its diagonal. For example, if input=5: ...
3 years 前
已解决
Flipping
Write code that can reverse the vector without using any sort of loop. Example Given the input vector A = [ 1 2 3 4 5...
3 years 前


