Solved


Print true if
all elements are larger than 5 a=[1 3 5 8 6]; b=[6 6 6 6 6]; function(a) should be false, and function(b) will be tru...

9 years ago

Solved


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

9 years ago

Solved


The sum of the numbers in the vector
eg. [1,2,3]---->SUM=6

9 years ago

Solved


Find the hypotenuse
Given a and b (the two sides of a right-triangle), find c, the hypotenuse.

9 years ago

Solved


sum of first 'n' terms
Given n=10, find the sum of first 'n' terms Example: If n=10, then x=1,2,3,4,5,6,7,8,9,10. The sum of these n=10 terms is 55...

9 years ago

Solved


Add two numbers
Add two numbers (For beginners)

9 years ago

Solved


BaeIsAlwaysRight
Output yes whatever bae says

9 years ago

Solved


Annoying population
Every year the number of annoying persons in the office triples Found the population, given a(0) and t

9 years ago

Solved


I told you not separate me, but you did :( - ACDC
Given input vector, output it's DC and AC value Example: input = 0 1 -1 0 ac = 0 1 -1 0 dc = 0

9 years ago

Solved


Freebies anyone? No!!!!
Feel free to copy paste all the tests and voila you solved the problem

9 years ago

Solved


time difference
The arrays x and y contain time values in the form of: x = [hours minutes seconds] Create the output z which contains the...

9 years ago

Solved


house of cards
How many cards do one need to build a house of cards with n stages? Short explanation: /\ 2 cards for 1 stage ...

9 years ago

Solved


Writing a while loop
Write a while loop that continues to increment userValue by 5 until userValue is less than 0.

9 years ago

Solved


Simple polynomial evaluation
Compute the value of a polynomial of degree n with all coefficients '1', at value x. n is always n>=0. p(x)=1+x+x^2+...+x^n...

9 years ago

Solved


Polynomial evaluation
Compute the value of a polynomial of degree n with coeffcients in vector a, at value x. p(x)=a(1)+a(2)x+a(3)x^2+...+a(n+1)x...

9 years ago

Solved


Corresponding letter to ASCII code.
Given the letter, the output will show the corresponding ASCII code.

9 years ago

Solved


ASCII code of a leter.
Given the letter, the output will show the corresponding ASCII code.

9 years ago

Solved


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

9 years ago

Solved


Unit conversion
Convert x degree Celsius to y degree Fahrenheit.

9 years ago

Solved


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

9 years ago

Solved


ASCII Code
Using matlab, give the symbol that is associated with ASCii code 90.

9 years ago

Solved


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

9 years ago

Solved


Square root of a number
Write a code that will output the square root of x.

9 years ago

Solved


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

9 years ago

Solved


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

9 years ago

Solved


square number
Square a number

9 years ago

Solved


y equals x divided by 2
function y = x/2

9 years ago

Solved


Resort number using given index!
Resort matrix [a] using given index [b]. For example, if a=[2 5 3 5]; b=[4 1 2 3]; , the result is [5 2 5 3]. (hint: y...

9 years ago

Solved


Calculate cross product
Make function for cross product a=[1 3 2]; b=[2 4 1]; y=function(a,b) y=[-5 3 -2]

9 years ago

Load more