已解决


Multi-line comments
* Fix the syntax errors.

9 years 前

已解决


Who knows the last digit of pi?
There is only one man who knows the last digit of pi, who is that man? Give the name of that man, who, by popular believe, can ...

9 years 前

已解决


Declaring a string
* Assign streetAddress with the string 1313 Mockingbird Lane.

9 years 前

已解决


Assigning a sum
* Write a statement that assigns numCoins with numNickels + numDimes.

9 years 前

已解决


Plus x: A first program
_Solve this problem in Mathwork's online Cody system._ Write a statement that assigns y with 5 plus x. Ex: If input x = 2,...

9 years 前

已解决


Circle area using pi
Write a statement that assigns circleArea with the circle's area given circleRadius. Use the built-in mathematical constant pi. ...

9 years 前

已解决


Celsius to Kelvin
Degrees Celsius = Kelvin - 273.15

9 years 前

已解决


Change string to number
Change given string to number. (hint: there is already function) Changing from ['1234'] to [1234] is one of example

9 years 前

已解决


Calculate area of sector
A=function(r,seta) r is radius of sector, seta is angle of sector, and A is its area. Area of sector A is defined as 0.5*(r^2...

9 years 前

已解决


Bottles of beer
Given an input number representing the number of bottles of beer on the wall, output how many are left if you take one down and ...

9 years 前

已解决


surface of a spherical planet
you just discovered its circumference, that is the input.

9 years 前

已解决


Get the length of a given vector
Given a vector x, the output y should equal the length of x.

9 years 前

已解决


Back to basics 22 - Rotate a matrix
Covering some basic topics I haven't seen elsewhere on Cody. Rotate the input matrix 90 degrees counterclockwise (e.g. [1 2; ...

9 years 前

已解决


Rotate a Matrix
Input a Matrix x, Output y is the matrix rotating x 90 degrees clockwise

9 years 前

已解决


Rotate a Matrix by 90 degrees
Rotate a Matrix by 90 degrees Example: If the input is: X = 1 2 3 4 5 6 7 8 9 ...

9 years 前

已解决


Variable_Addition
be able to add any variable to the number one

9 years 前

已解决


Find remainder when x is divided by 3
Find remainder when x is divided by 3

9 years 前

已解决


Sum of the Matrix Elements
Add up all the elements in a NxM matrix where N signifies the number of the rows and M signifies the number of the columns. E...

9 years 前

已解决


Matlab Basics - Sum a vector
Write a script to add up all the elements in a vector e.g. x = [1 2 3 4] --> output = 10

9 years 前

已解决


Number of digits in an integer
Specifies how many digits in a given integer. Example: in=100 ==> out=3

9 years 前

已解决


Add two numbers
Add two numbers (For beginners)

9 years 前

已解决


Add two numbers
Calculate the sum of two numbers. Example input = [2 3] output = 5

9 years 前

已解决


Convert yards to feet
The goal of this script is to convert a value given in yards to feet.

9 years 前

已解决


Find the logic
There exists one logic in between input and output. Find it (easy math). Example 1: x=13 then y=339; Example 2: x=26...

9 years 前

已解决


Make a 1 hot vector
Make a vector of length _N_ that consists of all zeros except at index _k_, where it has the value 1. Example: Input ...

9 years 前

已解决


Concatenate two strings
Its very easy. Just concatenate two strings.

9 years 前

已解决


Multiply by 3
Given the variable x as your input, multiply it by three and put the result in y.

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

9 years 前

已解决


Y=X
Given an input variable x, output a variable y that is equal in value to x. Example: Input x = 1 Output y is 1 Inp...

9 years 前

已解决


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

9 years 前

加载更多