Risolto


find the mean of all elements in a matrix
given a matrix, just find the mean of all elements in the matrix

quasi 10 anni fa

Risolto


find lenth of array
you have given an array, find the length of that.

quasi 10 anni fa

Risolto


first element of matrix
find the first elements of a column matrix

quasi 10 anni fa

Risolto


find a specific element from an matrix
Find the element from matrix which is in 2nd row and 3rd column.

quasi 10 anni fa

Risolto


list of prime numbers
n is given find the largest prime number <=n

quasi 10 anni fa

Risolto


find square root of a positive real number
a number given, find the square root of that number

quasi 10 anni fa

Risolto


find "greatest common divisor" of two integer value
A function to find Greatest Common Divisor of two integer input E.G. x=-18 y=96 output should be +6 x=-18; y=96; >>your...

quasi 10 anni fa

Risolto


Find remainder when x is divided by 3
Find remainder when x is divided by 3

quasi 10 anni fa

Risolto


multiply an array by its position number
You have given an array. Multiply an array by its position number

quasi 10 anni fa

Risolto


Find qube root
Find the quberoot of 27

quasi 10 anni fa

Risolto


find the Area of a rectangle
length is x width is y what is the area of the rectangle?

quasi 10 anni fa

Risolto


Prime number removal
remove all prime numbers from the input e.g. input = 1 2 3 4 5 6 7 8 9 10 11 12 ...

quasi 10 anni fa

Risolto


Calculating selling price
Cost of a Product is $x What should be the selling price if you want to gain 10%?

quasi 10 anni fa

Risolto


Zero Cross
Write a function that counts the number of times n a signal x crosses zero or changes sign. Examples x = [1 2 -3 -4 5 6 ...

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

quasi 10 anni fa

Risolto


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

circa 10 anni fa

Risolto


Find longest run
Write a function longest_run that takes as input an array of 0's and 1's and outputs the length and index of the longest consecu...

circa 10 anni fa

Risolto


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

circa 10 anni fa

Risolto


Free-time Equation
Given a 7-day week, an *_nc_* -number of *_tc_* -hour classes, *_ta_* -hours awake in a day, and *_tw_* -hours that you work in ...

circa 10 anni fa

Risolto


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

circa 10 anni fa

Risolto


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

circa 10 anni fa

Risolto


Transpose of matrix
Transpose of matrix as per test cases

circa 10 anni fa

Risolto


Rotate Matrix @180 degree
Rotate Matrix @180 degree Example A=[8 1 6; 3 5 7; 4 9 2], then answer would be [2 9 4;...

circa 10 anni fa

Risolto


Find the sum of n squares
What is the sum of the squares of the first n integers?

circa 10 anni fa

Risolto


테스트
다음과 같은 벡터를 1,2,2,3,3,3,4,4,4,4 만드는 사용자 정의 함수 your_fcn_name 을 작성하시오. 이 벡터는 그 숫자가 그 갯수 만큼 있다. 예) 만일 입력 n=3이면 3까지...

circa 10 anni fa

Carica altro