Resuelto


Rotate a Matrix by 90 degrees
Rotate a Matrix by 90 degrees Example: If the input is: X = 1 2 3 4 5 6 7 8 9 ...

alrededor de 11 años hace

Resuelto


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

alrededor de 11 años hace

Resuelto


Compute LOG(1+X) in natural log
Compute LOG(1+X) in natural log

alrededor de 11 años hace

Resuelto


Variable_Addition
be able to add any variable to the number one

alrededor de 11 años hace

Resuelto


only input
Return the output without writing any code into the function.

alrededor de 11 años hace

Resuelto


factorial of a number x
Factorial of a number x

alrededor de 11 años hace

Resuelto


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

alrededor de 11 años hace

Resuelto


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

alrededor de 11 años hace

Resuelto


Box!
Given a box, find the volume of the cube. With each side = a.

alrededor de 11 años hace

Resuelto


solve for y that is half as much as three less than one tenth of x
function y = half(x) y = (x * .1); end

alrededor de 11 años hace

Resuelto


Matlab Basics II - Free Fall
An object freely falling from rest under gravity covers a distance x given by: x = 1/2 gt^2 write a function that calculat...

alrededor de 11 años hace

Resuelto


Hardy-Ramanujan number
Find the first Hardy-Ramanujan number.

alrededor de 11 años hace

Resuelto


Compute total cost
A soda costs 2 dollars. A taco costs 3 dollars. Write a statement that assigns totalCost with the total meal cost given the numb...

alrededor de 11 años hace

Resuelto


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

alrededor de 11 años hace

Resuelto


Add 7
Given an input variable x, output a variable y that is 7 greater than x. Example: Input x = 1 Output y is 8 Input ...

alrededor de 11 años hace

Resuelto


Let's see how peculiar we can get
The task is to multiply two numbers. But do it in the most peculiar possible way.

alrededor de 11 años hace

Resuelto


Calculate SImple Interest
SI=P*T*R

alrededor de 11 años hace

Resuelto


Conversion from hours to mili sec
Convert given input in hours to mili seconds

alrededor de 11 años hace

Resuelto


How to make y half of x
Making y equal to x/2.

alrededor de 11 años hace

Resuelto


times 5
Given the variable x as your input, multiply it by five and put the result in y.

alrededor de 11 años hace

Resuelto


Sum of diagonal of a square matrix
If x = [1 2 4; 3 4 5; 5 6 7] then y should be the sum of the diagonals of the matrix y = 1 + 4 + 7 = 12

alrededor de 11 años hace

Resuelto


Reverse the vector
Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]

alrededor de 11 años hace

Resuelto


Get the length of a given vector
Given a vector x, the output y should equal the length of x.

alrededor de 11 años hace

Resuelto


Check if sorted
Check if sorted. Example: Input x = [1 2 0] Output y is 0

alrededor de 11 años hace

Resuelto


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

alrededor de 11 años hace

Resuelto


Number of Horns on a unicorn!
Calculate the number of horns on a *unicorn*! And I'm talking about a unicorn with not more than one horn on it!

alrededor de 11 años hace

Resuelto


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

alrededor de 11 años hace

Resuelto


length of a vector
Find twice the length of a given vector.

alrededor de 11 años hace

Resuelto


Find max
Find the maximum value of a given vector or matrix.

alrededor de 11 años hace

Resuelto


Arrange Vector in descending order
If x=[0,3,4,2,1] then y=[4,3,2,1,0]

alrededor de 11 años hace

Cargar más