Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


Add two numbers
Add two numbers (For beginners)

casi 10 años hace

Resuelto


BaeIsAlwaysRight
Output yes whatever bae says

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


Unit conversion
Convert x degree Celsius to y degree Fahrenheit.

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


square number
Square a number

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Resuelto


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

casi 10 años hace

Cargar más