Resuelto


modulus of a number
find the modulus of a given number

casi 10 años hace

Resuelto


Project Euler: Problem 14, Longest Collatz sequence
The following iterative sequence is defined for the set of positive integers: n → n/2 (n is even) n → 3n + 1 (n is odd) U...

casi 10 años hace

Resuelto


Kurchan Square - Evaluation Function
Evaluate a Kurchan square. An NxN square with values 1:N^2. Given a square matrix determine the products of each row, column,...

casi 10 años hace

Resuelto


Find 1's Complement
Find 1's complement of a binary number For Example: x = 10011010 1's complement of x = 01100101

casi 10 años hace

Resuelto


Index one element in each vector of an array along a given dimension
Functions like min and max can return in their second output argument the index of the element in each vector along a particular...

casi 10 años hace

Resuelto


Project Euler: Problem 18, Maximum path sum I
By starting at the top of the triangle below and moving to adjacent numbers on the row below, the maximum total from top to bott...

casi 10 años hace

Resuelto


Sums of cubes and squares of sums
Given the positive integers 1:n, can you: 1. Compute twice the sum of the cubes of those numbers. 2. Subtract the square...

casi 10 años hace

Resuelto


Unit conversion
Convert x degree Celsius to y degree Fahrenheit.

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


Zero Cross
Write a function that counts the number of times n a signal x crosses zero or changes sign. Examples x = [1 2 -3 -4 5 6 ...

casi 10 años hace

Resuelto


Find the inverse permutation
Given a permutation vector perm (a vector of n elements containing all the elements from 1 to n in some order), return the permu...

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


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

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


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


Annual Salary
What is the annual salary of Mr. Cody if he works 40 hours a week and gets $x per hour and a yearly bonus of $2000? (Let, 50 wee...

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


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


Vector with a repeated entry
Create a row vector of length n, filled with 5's. For example, if n = 3, output = [4 4 4] Hint: Search for the function...

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


Operate on matrices of unequal, yet similar, size
You may want to add a vector to a matrix, implying that the vector is added to each column of the matrix. Or multiply a 3x4x5 ma...

casi 10 años hace

Resuelto


Addition Partition
You will be given two numbers, N and K. Write a MATLAB function that will determine how many different unique ways you can have...

casi 10 años hace

Resuelto


Nth roots of unity
First, find the n nth roots of unity. eg if n = 6, find the n distinct (complex) numbers such that n^6 = 1. <https://en.wiki...

casi 10 años hace

Resuelto


Integer complexity
Given an array, n, of positive integers, return an array, c, of the same size, in which each element is the <https://en.wikipedi...

casi 10 años hace

Resuelto


Pseudo Square Root (Inspired by Project Euler 266)
Shamelessly copied from the Project Euler page for Problem 266: ------------- The divisors of 12 are: 1,2,3,4,6 and 12. T...

casi 10 años hace

Resuelto


Poker Card Deal!
Anyone want to play a card game? Well this is making one deck of cards, with the option of using 2 jokers. The outputs are ...

casi 10 años hace

Resuelto


How Far Can You Throw Something?
As you probably learned in your high school physics class, throwing an object at a 45 degree angle will give you the maximum ran...

casi 10 años hace

Resuelto


Counting the Grand Primes
A grand prime pair is a pair of primes, p1 and p2=p1+1000, such that both numbers are prime. Like a twin prime pair, where the d...

casi 10 años hace

Resuelto


Divide by 4
Given the variable x as your input, divide it by four and put the result in y.

alrededor de 10 años hace

Cargar más