Gelöst


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

etwa 11 Jahre vor

Gelöst


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

etwa 11 Jahre vor

Gelöst


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

etwa 11 Jahre vor

Gelöst


Variable_Addition
be able to add any variable to the number one

etwa 11 Jahre vor

Gelöst


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

etwa 11 Jahre vor

Gelöst


factorial of a number x
Factorial of a number x

etwa 11 Jahre vor

Gelöst


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

etwa 11 Jahre vor

Gelöst


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

etwa 11 Jahre vor

Gelöst


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

etwa 11 Jahre vor

Gelöst


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

etwa 11 Jahre vor

Gelöst


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

etwa 11 Jahre vor

Gelöst


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

etwa 11 Jahre vor

Gelöst


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

etwa 11 Jahre vor

Gelöst


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

etwa 11 Jahre vor

Gelöst


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

etwa 11 Jahre vor

Gelöst


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

etwa 11 Jahre vor

Gelöst


Calculate SImple Interest
SI=P*T*R

etwa 11 Jahre vor

Gelöst


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

etwa 11 Jahre vor

Gelöst


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

etwa 11 Jahre vor

Gelöst


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

etwa 11 Jahre vor

Gelöst


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

etwa 11 Jahre vor

Gelöst


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]

etwa 11 Jahre vor

Gelöst


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

etwa 11 Jahre vor

Gelöst


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

etwa 11 Jahre vor

Gelöst


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

etwa 11 Jahre vor

Gelöst


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!

etwa 11 Jahre vor

Gelöst


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

etwa 11 Jahre vor

Gelöst


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

etwa 11 Jahre vor

Gelöst


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

etwa 11 Jahre vor

Gelöst


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

etwa 11 Jahre vor

Mehr laden