已解决


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

8 years 前

已解决


Determine if a row vector has NaN
Determine if a row vector x has NaN

8 years 前

已解决


Finding peaks
Find the peak values in the signal. The peak value is defined as the local maxima. For example, x= [1 12 3 2 7 0 3 1 19 7]; ...

8 years 前

已解决


Create a matrix from a cell
In this problem , you must convert a cell into a matrix and pad each cell with NaN. *Example 1:* If you have the input...

8 years 前

已解决


Divisible by 10
Pursuant to the <http://www.mathworks.com/matlabcentral/cody/problems/42404-divisible-by-2 first problem> in this series, this o...

8 years 前

已解决


Divisible by 6
Pursuant to the <http://www.mathworks.com/matlabcentral/cody/problems/42404-divisible-by-2 first problem> in this series, this o...

8 years 前

已解决


Divisible by 4
Pursuant to the <http://www.mathworks.com/matlabcentral/cody/problems/42404-divisible-by-2 first problem> in this series, this o...

8 years 前

已解决


Divisible by 3
Pursuant to the <http://www.mathworks.com/matlabcentral/cody/problems/42404-divisible-by-2 first problem> in this series, this o...

8 years 前

已解决


Write a code that will follow the equation y = x * (x + x) * x.
If x = 5, y = 5 * (5+5) * 5 = 250

8 years 前

已解决


ASCII Code
Using matlab, give the symbol that is associated with ASCii code 90.

8 years 前

已解决


Corresponding letter to ASCII code.
Given the letter, the output will show the corresponding ASCII code.

8 years 前

已解决


Area of a circle
Given the radius x, y would be the area of a circle. Pi = 3.1416

8 years 前

已解决


Annual Salary
What is the annual salary of Mr. Cody if he works 40 hours a week and gets $x per hour and a yearly bonus of $2000? (Let, 50 wee...

8 years 前

已解决


Unit conversion
Convert x degree Celsius to y degree Fahrenheit.

8 years 前

已解决


Square root of a number
Write a code that will output the square root of x.

8 years 前

已解决


If you have matrix A, create matrix B using matrix A as an "element"
A = [1 2 3 4; 5 6 7 8] B = [1 2 3 4 1 2 3 4; 5 6 ...

8 years 前

已解决


Vector with a repeated entry
Create a row vector of length n, filled with 5's. For example, if n = 3, output = [4 4 4] Hint: Search for the function...

8 years 前

已解决


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

8 years 前

已解决


Divisible by 2
This is the first problem in a set of "divisible by x" problems. You will be provided a number as a string and the function you ...

8 years 前

已解决


Divisible by 5
Pursuant to the <http://www.mathworks.com/matlabcentral/cody/problems/42404-divisible-by-2 first problem> in this series, this o...

8 years 前

已解决


Possible Outcomes of American Roulette
The payout for American roulette can be calculated by: payout = (38/n)-1 where n is the number of squares the bet covers. ...

8 years 前

已解决


Create a square matrix of zeros of even order
Create a square matrix of zeros of even order

8 years 前

已解决


Pseudo Square Root (Inspired by Project Euler 266)
Shamelessly copied from the Project Euler page for Problem 266: ------------- The divisors of 12 are: 1,2,3,4,6 and 12. T...

8 years 前

已解决


Perimeter of a square
Find a function for the perimeter of a square where x equals a side length

8 years 前

已解决


Multipliying 2 numbers
Multiplying 2 numbers

8 years 前

已解决


Vector 1 to 15.
Create a vector from 1 to 15.

8 years 前

已解决


CARDS PROBLEM
Read my mind and tell me the card number that I have now in my hands.

8 years 前

已解决


Determine the product of the vector
Determine the product of a given vector if you multiply the vector by 2.

8 years 前

已解决


Area of a Circle
x=radius %construct the area of a circle using x and pi

8 years 前

加载更多