已解决


square root
Find the square root (y) of an input (x).

2 years 前

已解决


Create a Matrix of Zeros
Given an input x, create a square matrix y of zeros with x rows and x columns.

2 years 前

已解决


Square a Number
Given an input x, return y, which is equal to the square of x.

2 years 前

已解决


Find 0 in array
Given array find where there 0 is.

2 years 前

已解决


Return the first and last characters of a character array
Return the first and last character of a string, concatenated together. If there is only one character in the string, the functi...

2 years 前

已解决


Roll the Dice!
*Description* Return two random integers between 1 and 6, inclusive, to simulate rolling 2 dice. *Example* [x1,x2] =...

2 years 前

已解决


Check if number exists in vector
Return 1 if number _a_ exists in vector _b_ otherwise return 0. a = 3; b = [1,2,4]; Returns 0. a = 3; b = [1,...

2 years 前

已解决


Swap the input arguments
Write a two-input, two-output function that swaps its two input arguments. For example: [q,r] = swap(5,10) returns q = ...

2 years 前

已解决


Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; ...

2 years 前

已解决


determine skid distance of car
Determine the distance a car skids to a stop given initial velocity (v) and time (t).

2 years 前

已解决


Find the Oldest Person in a Room
Given two input vectors: * |name| - user last names * |age| - corresponding age of the person Return the name of the ol...

2 years 前

已解决


Convert from Fahrenheit to Celsius
Given an input vector |F| containing temperature values in Fahrenheit, return an output vector |C| that contains the values in C...

2 years 前

已解决


Square the input
Given a scalar or vector x, return the square of each element. Example x = [7 2] answer = [49 4]

2 years 前

已解决


to the 2 all elements
to the 2 all elements

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

2 years 前

已解决


Arrange vector in ascending order
Arrange a given vector in ascending order. input = [4 5 1 2 9]; output = [1 2 4 5 9];

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

2 years 前

已解决


Calculate the average value of the elements in the array
Calculate the average value of the elements in the array

2 years 前

已解决


the average value of the elements
Calculate the average value of the elements in the array

2 years 前

已解决


Find the max element of the array
Find the max element of the array

2 years 前

已解决


Double all elements in the array
Duplicate all elements in the array

2 years 前

已解决


calculate the length of matrix
input 1 array, calculate the length

2 years 前

已解决


Square root
Given x (a matrix), give back another matrix, where all the elements are the square roots of x's elements.

2 years 前

已解决


Determine the length of a string of characters
Determine the length of a string of characters

2 years 前

已解决


What is Sum Of all elements of Matrix
Given the matrix x, return the sum of all elements of matrix. Example: Input x = [ 1 2 0 0 0 0 6 9 3 3 ] ...

2 years 前

已解决


Beginner's Problem - Squaring
Try out this test problem first. Given the variable x as your input, square it by two and put the result in y. Examples: ...

2 years 前

已解决


radius of a spherical planet
You just measured its surface area, that is the input.

2 years 前

已解决


Return the Fibonacci Sequence
Write a code which returns the Fibonacci Sequence such that the largest value in the sequence is less than the input integer N. ...

2 years 前

已解决


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

2 years 前

已解决


Area of a Square
Inside a square is a circle with radius r. What is the area of the square?

2 years 前

加载更多