Solved


Is the input divisible by 3?
Return true if the input is divisible by 3 and false if not.

6 months ago

Solved


Celsius to Kelvin
Convert Celsius degrees to Kelvin temperature.

6 months ago

Solved


Back to basics 1 - Saving
Covering some basic topics I haven't seen elsewhere on Cody. Given an input variable 'x', save it to disk in a file named 'co...

6 months ago

Solved


Number of 1s in a binary string
Find the number of 1s in the given binary string. Example. If the input string is '1100101', the output is 4. If the input stri...

6 months ago

Solved


Get The Square Root Of Number Power (^) Three
Get the Square Root of number Power (^) Three.

6 months ago

Solved


Scrabble Scores
Given a word, determine its score in <http://en.wikipedia.org/wiki/Scrabble Scrabble>. The input string will always be provi...

6 months ago

Solved


Temperature conversion
Convert temperature in degrees Celsius (C) to temperature in degrees Kelvin (K). Assume your answer is rounded to the nearest Ke...

6 months ago

Solved


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

6 months ago

Solved


Matlab Basics - Convert a row vector to a column vector
Write a script to convert a row (e.g. x = [1 2 3]) to a column (e.g. y = [1;2;3]), your script should be able to do this for any...

6 months ago

Solved


Convert given decimal number to binary number.
Convert given decimal number to binary number. Example x=10, then answer must be 1010.

6 months ago

Solved


Find The Area Of Triangle Using Base & Height
You should find the area of the Triangle using base and height. Good Luck!

6 months ago

Solved


Matlab Basics II - Extract last 3 elements of a vector
Let x be a vector of unknown length, we are always interested in the last 3 numbers in the vector, write a function that gives t...

6 months ago

Solved


Divide by 4
Given the variable x as your input, divide it by 4 and put the result in y.

6 months ago

Solved


Volume and area of a sphere
Input(r) - radius Output([v,s]) - volume and area

6 months ago

Solved


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

6 months ago

Solved


Basic Algebra I
You should solve the problem 3X - 2 = 7 by finding the value of X. You must use this array/vector [2 3 7]. GOOD LUCK!

6 months ago

Solved


Given the ratio of the two legs (longer / shorter), and the hypotenuse length, find the shorter leg.
Further to the problem 43236, find the length of shorter leg P.S No built-in functions allowed

6 months ago

Solved


Engine Thermal Efficiency
The thermal efficiency of an ideal Otto cycle engine depends only on the compression ratio. A higher compression ratio yields gr...

6 months ago

Solved


Engine torque and RPM
Torque and power are related through rotational speed. Knowing brake power and engine RPM, you can back-calculate the torque del...

6 months ago

Solved


Square the input
Given a scalar or vector x, return the square of each element. Example x = [7 2] answer = [49 4]

6 months ago

Solved


only input
Return the output without writing any code into the function.

6 months ago

Solved


Calculate feeling temperature before climbing a mountain
I sometimes climb a mountain. As is well known, when the altitude becomes 100 (m) higher, the temperature lowers by 0.6 degrees...

6 months ago

Solved


Spherical Volume
Calculate the volume of a sphere.

6 months ago

Solved


The sum of individual numbers...
Well this one is taking a number and then summing the individual parts till you reach a value of 1, 2, 3, 4, 5, 6, 7, 8, 9, or 0...

6 months ago

Solved


Oh Zero Zero Zero!!!
Hello all, So you have to find the largest section of zeros in a vector and then find the length of those zeros and there start...

6 months ago

Solved


Do you like your boss?
Do you like your boss? Answer can be any string! For example: Boss = 'Do you like your boss?'; Output = 'yes' or ...

6 months ago

Solved


Min of a Matrix
Return the minimum value in the given matrix.

6 months ago

Solved


compter le nombre de zéros dans une matrice
écrire une fonction count_zeros qui prend en entrée une matrice M et détermine le nombre de zéros dans une matrice

6 months ago

Solved


Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

6 months ago

Solved


Remove Lower Case Letters
Example MEMOry --> MEMO IMPlEMeNtATiON --> IMPEMNATON

6 months ago

Load more