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