解決済み


Doubling elements in a vector (★★)
(copy of prob. 1024) Given the vector A, return B in which all numbers in A are doubling. So for: A = [ 1 5 8 ] t...

約2年 前

解決済み


Vector of digits (★★)
Given a positive integer x, construct a vector y with all the digits of x in the order of appearance in x. Thus, if x = 172...

約2年 前

解決済み


Create a vector of the first n odd numbers (★)
If n = 10, your program should return a vector y, where y = [1 3 5 7 9 11 13 15 17 19].

約2年 前

解決済み


Average of corner elements of a matrix (★★)
(copy of prob 2235) Calculate the average of corner elements of a matrix. e.g. x=[1 2 3; 4 5 6; 7 8 9;] avg = (1+3+7+9)...

約2年 前

解決済み


Median computation (★)
Given a vector of values, compute the median. The median is defined as the middle value in a set of *sorted* data. Thus, if ...

約2年 前

解決済み


Create a vector of the first n natural numbers (★)
If n = 7, your program should return a vector y, where y = [1 2 3 4 5 6 7].

約2年 前

解決済み


Factorize uniquely! (★★)

約2年 前

解決済み


Generate n equally spaced "intervals" between -x and x (★)
Given n and x, return a list of numbers (in ascending order) that divides the interval [-x x] into n equal-length intervals. ...

約2年 前

解決済み


Sum of elements in a vector (★)
(copy of Prob. 3) Find the sum of all the numbers of the input vector x. Input x = [1 2 3 5] Output y is 11 <> ...

約2年 前

解決済み


Vector creation using linspace
Create a vector y containing n uniformly spaced values between a and b, with a < b. Use linspace.

約2年 前

解決済み


Vector creation using colon operator
Create a vector y containing n uniformly spaced values between a and b, with a < b. Use the colon (:) operator.

約2年 前

解決済み


Logarithmically spaced vector creation using logspace
Create a vector y containing n logarithmically spaced values between a and b, with a < b. Use the logspace operator.

約2年 前

解決済み


Logarithmically spaced vector creation using linspace
Create a vector y containing n logarithmically spaced values between a and b, with a < b. Avoid using logspace and use the linsp...

約2年 前

解決済み


Surface area of a cone

約2年 前

解決済み


find the value

約2年 前

解決済み


find the answer

約2年 前

解決済み


find the answer

約2年 前

解決済み


area of a sphere

約2年 前

解決済み


find the answer

約2年 前

解決済み


find the answer

約2年 前

解決済み


Perimeter of a Triangle

約2年 前

解決済み


Period of a pendulum

約2年 前

解決済み


Volume of a sphere

約2年 前

解決済み


Sort in descending order.

約2年 前

解決済み


Find the worst traffic yesterday

約2年 前

解決済み


Specific toolboxes
Given a string that is the name of a MATLAB toolbox, return true if it is available on the Cody solvers evaluation system, false...

2年以上 前

解決済み


Delete blanks at the end of string
you got to delete all blank spaces which appears at the end of string

2年以上 前

さらに読み込む