Solved

create a circulant matrix
create a circulant matrix

oltre 3 anni ago

Solved

Remove the positive integers.
Given array,x, remove all the positive numbers and display ouput as y. Example x=[1 -2 3 -4] , output is y=[-2 -4].

oltre 3 anni ago

Solved

Upper triangular matrix
Create a function to retrieve the upper triangular matrix of a matrix (without using tril). The matrix will always be square. ...

oltre 3 anni ago

Solved

subtract central cross
Given an n-by-n square matrix, where n is an odd number, return the matrix without the central row and the central column.

oltre 3 anni ago

Solved

Square Diagonal
If n is the given number, then make a diagonal matrix of size 2*2 with the square of that number.

oltre 3 anni ago

Solved

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

oltre 3 anni ago

Solved

Vector creation
Create a vector using square brackets going from 1 to the given value x in steps on 1. Hint: use increment.

oltre 3 anni ago

Solved

Find the Nth Root of a Given Number
Find the Nth root of a given number x. Examples x = 4096 n = 4 y = 8 x = 625 n = 5 y = 3.6239

oltre 3 anni ago

Solved

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

oltre 3 anni ago

Solved

prime test
find largest 2 digit prime number

oltre 3 anni ago

Solved

factorial of a number x
Factorial of a number x

oltre 3 anni ago

Solved

Kinetic Energy
Given the mass m and velocity v of an object, determine its <http://en.wikipedia.org/wiki/Kinetic_energy kinetic energy>.

oltre 3 anni ago

Solved

Speed of car
Calculate the Speed of car given its Distance travelled and time taken in x and y respectively

oltre 3 anni ago

Solved

Sum the 'edge' values of a matrix
Sum the 'edge' values of an input matrix (the values along the perimeter). Example [1 2 3 4 5 6 7 8 9] Output = ...

oltre 3 anni ago

Solved

Mersenne Primes
A Mersenne prime is a prime number of the form M = 2^p - 1, where p is another prime number. For example, 31 is a Mersenne prim...

oltre 3 anni ago

Solved

Array of Ones
Create a 100 X 100 array of ones.

oltre 3 anni ago

Solved

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

oltre 3 anni ago

Solved

reverse string
input='rama' output='amar'

oltre 3 anni ago

Solved

Replacing a row
For matrix G=[1 2 3; 4 5 6; 7 8 9] Replace the 2nd row with 8s **remember to create matrix G

oltre 3 anni ago

Solved

Multiple if statements
Write an if-statement that subtracts 5 from outputValue if amplitudeResponse is greater than 10. Write a second if-statement tha...

oltre 3 anni ago

Solved

find a number (cheat)
find a number input^5 = input the out put should be the number. try cheating

oltre 3 anni ago

Solved

Food safety
Assign safeTemperature with 1 if foodTemperature is less than 40 or greater than 165.

oltre 3 anni ago

Solved

While loop: Summation
Write a while loop that assigns summedValue with the sum of all values from 1 to userNum. Assume userNum is always greater than ...

oltre 3 anni ago

Solved

test_first
just to test

oltre 3 anni ago

Solved

cheating technique2
there are some ways to get hints just by looking at the test suits to cheat. try.

oltre 3 anni ago

Solved

Sudoku square
We have a small Sudoku square, but one number is missing. x = [ 1 5 4 8 6 3 0 9 7 ] Make a function, wher...

oltre 3 anni ago

Solved

Flip the vector from right to left
Flip the vector from right to left. Examples x=[1:5], then y=[5 4 3 2 1] x=[1 4 6], then y=[6 4 1]; Request not ...

oltre 3 anni ago

Solved

Writing a function: MaxValue()
Write a local function named MaxValue that returns the maximum of two inputs numA and numB.

oltre 3 anni ago

Solved

Given a matrix, return the last eigen value
Given a matrix, return the first eigen value For example: x = magic(5) 17 24 1 8 15 23 5 7 14 ...

oltre 3 anni ago

Solved

Derivative of polynomial
Compute the derivative of a given polynomial. The input is an <http://www.mathworks.com/help/matlab/math/representing-polynomial...

oltre 3 anni ago