A résolu


ASCii Code
Using matlab, give the symbol that is associated with ASCii code 122

plus de 8 ans il y a

A résolu


Find out missing number from a vector of 9 elements
You are given a vector of size 9, x = [x1 x2 x3 x4 x5 x6 x7 x8 x9] Elements of x may be randomly selected without repeati...

plus de 8 ans il y a

A résolu


Distance walked 2D
Suppose you go from x-y coordinates [3,4] to [0,0] to [0,1] to [1,1], then you walked 7 units of distance.

plus de 8 ans il y a

A résolu


Create matrix of replicated elements
Given an input element x, and the dimensions, (m, n) return a matrix of size m x n filled with element x. Example: Input: ...

plus de 8 ans il y a

A résolu


Distance walked 3D
suppose you go from x-y-z coordinates [3,4,2] to [0,0,2] to [0,1,2] to [1,1,2], to [1,1,20] then you walked 25 units of distance...

plus de 8 ans il y a

A résolu


sum of non-primes
The sum of the non-primes below 10 is 1+4+6+8+9+10=38 Find the sum of all the non-primes below the input, N.

plus de 8 ans il y a

A résolu


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

plus de 8 ans il y a

A résolu


Back to basics 26 - Keywords
Covering some basic topics I haven't seen elsewhere on Cody. Return a cell array of strings of all MATLAB keywords.

plus de 8 ans il y a

A résolu


kmph to mps
convert kilometer per hour to meter per second

plus de 8 ans il y a

A résolu


Say something funny
Say something funny, or not. Your solution will be (fully automatically and objectively) scored based on how clever or funny ...

plus de 8 ans il y a

A résolu


Back to basics 7 - Equal NaNs
Covering some basic topics I haven't seen elsewhere on Cody. Given 2 input variables, output true if they are equal, false ot...

plus de 8 ans il y a

A résolu


Potential Energy
Calculate the potential energy of a rock.

plus de 8 ans il y a

A résolu


Log of a number
Write a script that will give the log of x as output.

plus de 8 ans il y a

A résolu


Sum all integers from 1 to 2^x
Given a number x, your function must return the summation of all integers from 1 to 2^x.

plus de 8 ans il y a

A résolu


Find hen's weight.
If hen weights x kilos on two legs, how much does it weights on one leg? Output the result.

plus de 8 ans il y a

A résolu


Spherical Volume
Calculate the volume of a sphere.

plus de 8 ans il y a

A résolu


Step up
For given input array, output a array with all elements step up by two

plus de 8 ans il y a

A résolu


Print true if
all elements are larger than 5 a=[1 3 5 8 6]; b=[6 6 6 6 6]; function(a) should be false, and function(b) will be tru...

plus de 8 ans il y a

A résolu


Sum positive elements of matrix.
Calculate sum of positive elements of the matrix.

plus de 8 ans il y a

A résolu


Calculate the centroid of a triangle
Info: https://en.wikipedia.org/wiki/Centroid Example Input: x = [0 0 1]; % x-coordinate y = [0 1 0]; % y-coordinat...

plus de 8 ans il y a

A résolu


Nth root
Nth root of a number x

plus de 8 ans il y a

A résolu


Find minimum and maximum elements of an array
For a given array find minimum and maximum elements of an array and store minimum value in first index of output and maximum in ...

plus de 8 ans il y a

A résolu


Find the sum of n squares
What is the sum of the squares of the first n integers?

plus de 8 ans il y a

A résolu


Remove All elements less than 5
Given an input vector x, remove all elements of x less than 5 . Example: Input x = [ 1 2 5 7 3 ] Output y is [ 5 7 ...

plus de 8 ans il y a

A résolu


Ohm's Law
Well its Ohm's law... So V = IR! I will give two of the three values, such as V and I or I and R and you have to return th...

plus de 8 ans il y a

A résolu


Convert radians to degrees
Given input in radians, output to degrees

plus de 8 ans il y a

A résolu


Convert degrees to radians
Given input in degrees, output to radians

plus de 8 ans il y a

A résolu


Matrix FUN
Given a Matrix M, find out the number of elements of matrix that are divisible by 3. M = [1 2 3;4 5 6;7 8 9]; ou...

plus de 8 ans il y a

A résolu


Weave two vectors into one
Weave the two given vectors into one as shown below. Example: If a = [1 1 1] b = [0 0 0] then y = [1 0 1 0 ...

plus de 8 ans il y a

A résolu


Change Vector Value
Change the element of the vector with respect to the element of the direction vector If the element of the direction vecto...

plus de 8 ans il y a

Charger plus