A résolu


'Determine if array of numbers is odd'
Return true if the input single number is odd. If the input is a vector, it will return a vector or array of logical values indi...

plus d'un an il y a

A résolu


Determine given vector is even or odd
Find the numbers of the input vector is odd or even then replace even with 1 and odd with 0 Example x = [ 3 3 4 6 1] ...

plus d'un an il y a

A résolu


There are 10 types of people in the world
Those who know binary, and those who don't. The number 2015 is a palindrome in binary (11111011111 to be exact) Given a year...

plus d'un an il y a

A résolu


Number of toolboxes?
Return a number equal to the number of toolboxes available to the Cody solvers.

plus d'un an il y a

A résolu


Create a square matrix of multiples
Given an input, N, output a matrix N x N with each row containing multiples of the first element of each row. This also applies...

plus d'un an il y a

A résolu


Finding area of a triangle.
Find the area of an equalateral triangle with sides of 3 inches,

plus d'un an il y a

A résolu


Area of right triangle
Given a hypotenuse and a leg , calculate the area of right triangle.

plus d'un an il y a

A résolu


Make one vector from two others
You are given two vectors of equal length. Your task is to create a MATLAB script that will repeat all of the values in the fir...

plus d'un an il y a

A résolu


Compute Fibonacci Number
Compute the n-th Fibonacci Number f(0) = 0, f(1) = 1, f(2) = 1, f(3) = 2, ... f(42) = 267914296

plus d'un an il y a

A résolu


Find the product of a Vector
How would you find the product of the vector [1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0 5.5 6.0] times 2?; x = [1 : 0.5 : 6]; y ...

plus d'un an il y a

A résolu


Generate pi using logarithm
Generate pi using logarithm

plus d'un an il y a

A résolu


Compute LOG(1+X) in natural log
Compute LOG(1+X) in natural log

plus d'un an il y a

A résolu


Back to basics 12 - Input Arguments
Covering some basic topics I haven't seen elsewhere on Cody. Return a value equal to the number of input arguments to the fun...

plus d'un an il y a

A résolu


Cumulative product of a vector
Cumulative product of a vector example x=[1 2 5 10], then answer must be [ 1 2 10 100] *If you like this prob...

plus d'un an il y a

A résolu


find whether it is prime or not
For a given number find if its prime

plus d'un an il y a

A résolu


struct2values()
Convert a struct object into a column vector. You can assume that the struct elements are scalars Example: a = struct();...

plus d'un an il y a

A résolu


Calculate some equation
Using given inputs x and z, make two outputs that are y1 = (xz)/(x/z)^2 + 14x^2 - 0.8z^2 y2 = x^z - z^x + (x/z)^2 - (z/x...

plus d'un an il y a

A résolu


Sum the rows
Sum the rows of the given matrix. Example x = [ 1 2 3 4 ] y = [ 3 7 ]

plus d'un an il y a

A résolu


basic finance application
i watch bloomberg everyday and i want to estimate a stock price stability, so i have to calculate the momentum & the rate of cha...

plus d'un an il y a

A résolu


currency converter
given a rate of exchange calculate the equivalent units of 100 USD

plus d'un an il y a

A résolu


lb to kilogram
convert lb to kilogram units, easy

plus d'un an il y a

A résolu


Ounces to Kilograms
convert ounces to kilograms, easy

plus d'un an il y a

A résolu


convert between ascii and characters
I have seen multiple problems like this but none of them have a robust test suite associated with them. The first input C is ...

plus d'un an il y a

A résolu


convert binary string to vector!!!

plus d'un an il y a

A résolu


Convert from integer to binary
if true % decimalToBinaryVector(x) end

plus d'un an il y a

A résolu


Find Logic 24

plus d'un an il y a

A résolu


Find Logic 29

plus d'un an il y a

A résolu


Find Logic 30

plus d'un an il y a

A résolu


Find Logic 31

plus d'un an il y a

A résolu


Find Logic 25

plus d'un an il y a

Charger plus