解決済み


Multi-line comments
* Fix the syntax errors.

10年弱 前

解決済み


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

10年弱 前

解決済み


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

10年弱 前

解決済み


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

10年弱 前

解決済み


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

10年弱 前

解決済み


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

10年弱 前

解決済み


Celsius to Kelvin
Degrees Celsius = Kelvin - 273.15

10年弱 前

解決済み


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

10年弱 前

解決済み


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

10年弱 前

解決済み


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

10年弱 前

解決済み


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

10年弱 前

解決済み


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

10年弱 前

解決済み


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

10年弱 前

解決済み


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

10年弱 前

解決済み


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

10年弱 前

解決済み


Variable_Addition
be able to add any variable to the number one

10年弱 前

解決済み


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

10年弱 前

解決済み


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

10年弱 前

解決済み


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

10年弱 前

解決済み


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

10年弱 前

解決済み


Add two numbers
Add two numbers (For beginners)

10年弱 前

解決済み


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

10年弱 前

解決済み


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

10年弱 前

解決済み


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

10年弱 前

解決済み


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

10年弱 前

解決済み


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

10年弱 前

解決済み


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

10年弱 前

解決済み


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

10年弱 前

解決済み


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

10年弱 前

解決済み


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

10年弱 前

さらに読み込む