Resuelto


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...

5 días hace

Resuelto


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...

5 días hace

Resuelto


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

5 días hace

Resuelto


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

6 días hace

Resuelto


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

6 días hace

Resuelto


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 días hace

Resuelto


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 días hace

Resuelto


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

6 días hace

Resuelto


Basic Physics I
Calculate the energy by the famous formula of Albert Einstein.

6 días hace

Resuelto


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

6 días hace

Resuelto


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 días hace

Resuelto


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

6 días hace

Resuelto


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

6 días hace

Resuelto


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 días hace

Resuelto


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 días hace

Resuelto


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

7 días hace

Resuelto


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

7 días hace

Resuelto


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...

7 días hace

Resuelto


Right and wrong
Given a vector of lengths [a b c], determines whether a triangle with those sides lengths is a right triangle: <http://en.wikipe...

11 días hace

Resuelto


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

11 días hace

Resuelto


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

11 días hace

Resuelto


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...

11 días hace

Resuelto


Spherical Volume
Calculate the volume of a sphere.

11 días hace

Resuelto


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...

12 días hace

Resuelto


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...

12 días hace

Resuelto


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 ...

12 días hace

Resuelto


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

12 días hace

Resuelto


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

12 días hace

Resuelto


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 ...

12 días hace

Resuelto


String Logic 2
Example: ROSY --> HEIO TRUST --> JHKIJ MOSTLY --> CEIJBO

12 días hace

Cargar más