Solved


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

6 years ago

Solved


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

6 years ago

Solved


07 - Common functions and indexing 1
Define _cMat_: <<http://samle.dk/STTBDP/Assignment1_3c.png>> ( _cMat_ = 10x10 matrix where the numbers from 1 to 100 runs ...

6 years ago

Solved


Create a square matrix of multiples
Given an input, N, output a matrix N x N with each row containing multiples of the first element of each row. This also applies...

6 years ago

Solved


ASCii Code
Using Matlab get the ASCii for '?'

6 years ago

Solved


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

6 years ago

Solved


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

6 years ago

Solved


Perfect Square or not
find Given input x is perfect square or not,if yes then output y=1.else y=0

6 years ago

Solved


Factorial Numbers
Factorial is multiplication of integers. So factorial of 6 is 720 = 1 * 2 * 3 * 4* 5 *6 Thus 6 factorial = factorial(720)....

6 years ago

Solved


Determine Whether an array is empty
Input a matrix x, output y is TRUE if x is empty, otherwise FALSE.

6 years ago

Solved


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

6 years ago

Solved


Fibonacci sequence
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...

6 years ago

Solved


Determine the number of odd integers in a vector
Determine the number of unique odd integers in a vector. Examples: Input x = [2 5 8 3 7 1]; Output y = 4; Inp...

6 years ago

Solved


Replace every 3rd element in a vector with 4
x is a vector of undetermined length You are to replace every 3rd element with the number 4, example: x = [11 23 34 43 2 3...

6 years ago

Solved


Times 3 problem
When you enter the number, it should return the number multiplied by 3

6 years ago

Solved


Switch matrix to a column vector
for e.g. x = [1 2 3 4] y = 1 3 2 4

6 years ago

Solved


Create a vector
Create a vector from 0 to n by intervals of 2.

6 years ago

Solved


square number
Square a number

6 years ago

Solved


Reverse a matrix
Its simple. You have to reverse a given matrix.

6 years ago

Solved


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

6 years ago

Solved


Sum of the Matrix Elements
Add up all the elements in a NxM matrix where N signifies the number of the rows and M signifies the number of the columns. E...

6 years ago

Solved


Concatenate two strings
Its very easy. Just concatenate two strings.

6 years ago

Solved


Roots
Find out the roots of a given polynomial equation.Given are the coefficients of the equation.

6 years ago

Solved


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

6 years ago

Solved


Calculate the derivative of a polynomial
Example: in = [ 1 1 1 ] out = [ 2 1 ]

6 years ago

Solved


Evaluating a polynomial
Given the following polynomial and the value for x, determine y. y = 3x^5 – x^3 + 8x – 3 Example x = 1 y = 3 - 1 +...

6 years ago

Solved


Symmetry of vector
Determine whether the vector is symmetric or not (vector could be even or odd in length). For example: x = [1 2 3 3 2 1] ...

6 years ago

Solved


Transpose
Write a MATLAB script in order to convert a random length row vector (v) into a column vector.

6 years ago

Solved


Determine the square root
Determine the square root of the value the user has entered, n.

6 years ago

Solved


Is the input divisible by 3?
Return true if the input is divisible by 3 and false if not.

6 years ago

Load more