Solved


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

ungefär 2 år ago

Solved


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

ungefär 2 år ago

Solved


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

ungefär 2 år ago

Solved


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

ungefär 2 år ago

Solved


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

ungefär 2 år ago

Solved


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

ungefär 2 år ago

Solved


Factorize uniquely! (★★)

ungefär 2 år ago

Solved


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

ungefär 2 år ago

Solved


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

ungefär 2 år ago

Solved


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

ungefär 2 år ago

Solved


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.

ungefär 2 år ago

Solved


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.

ungefär 2 år ago

Solved


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

ungefär 2 år ago

Solved


Surface area of a cone

ungefär 2 år ago

Solved


find the value

ungefär 2 år ago

Solved


find the answer

ungefär 2 år ago

Solved


find the answer

ungefär 2 år ago

Solved


area of a sphere

ungefär 2 år ago

Solved


find the answer

ungefär 2 år ago

Solved


find the answer

ungefär 2 år ago

Solved


Perimeter of a Triangle

ungefär 2 år ago

Solved


Period of a pendulum

ungefär 2 år ago

Solved


Volume of a sphere

ungefär 2 år ago

Solved


Sort in descending order.

ungefär 2 år ago

Solved


Find the worst traffic yesterday

ungefär 2 år ago

Solved


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

ungefär 2 år ago

Solved


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

ungefär 2 år ago

Load more