Resuelto


Sudoku square
We have a small sudoku square, but we miss one number. x=[ 1 5 4; 8 6 3; 0 9 7]; Make a function, where output is fi...

más de 9 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...

más de 9 años hace

Resuelto


Number of primes
Count the number of primes less than 'n'.

más de 9 años hace

Resuelto


Beat the test suite if you can :)
Test Suites are laid there for clues

más de 9 años hace

Resuelto


Creating a code via test suite :)
Given the test suites, create a code that would fit them :) *Clue: Pascal's Triangle

más de 9 años hace

Resuelto


Rotate array 90 degrees
Example, A = [1 2 3 ; 4 5 6 ] B = rotated(A) = [ 3 6; 2 5; 1 4 ]

más de 9 años hace

Resuelto


Convert a vector to a lower triangular matrix
I now have a row vector and I want to convert it to a lower trilangular matrix. The rows of the lower trilangular matrix have...

más de 9 años hace

Resuelto


kmph to mph converter
Convert the speed in miles/hour to km/hour.

más de 9 años hace

Resuelto


What's size of TV?
Many people buy TV. Usually they ask about diagonal. But also important are width and height. Let's assume that all TV have rati...

más de 9 años hace

Resuelto


Back to Basics - New Data Type in R2016b - convert a char to a string
Convert an char array into a string.

más de 9 años hace

Resuelto


Euclidean inter-point distance matrix
The Euclidean distance between two points in a p-dimensional space is a really common thing to compute in the field of computati...

más de 9 años hace

Resuelto


Odd row
Create a row 'y' with odd numbers where the range of numbers is given by 'x' and the space between them by 'm'. The first number...

más de 9 años hace

Resuelto


Simpsons's rule (but not Homer Simpson)
I wonder what Homer Simpson would have thought of Simpson's rule? Somehow I doubt his thoughts would have included the phrase Ne...

más de 9 años hace

Resuelto


Sum of digits of powers of 2
Given n, first, calculate the number 2^n. Then, sum the digits that comprise that number. For example: Input: n = 7 2^n = ...

más de 9 años hace

Resuelto


Find remainder when x is divided by 3
Find remainder when x is divided by 3

más de 9 años hace

Resuelto


Calculating cost
You sold a Product at $x and gain 10% What was the cost of the product?

más de 9 años hace

Resuelto


Select every other element of a matrix
Write a function called outMat = odd_idx( myMat ) that takes a matrix, myMat, as input argument and returns a matrix th...

más de 9 años hace

Resuelto


Vector addition
Given two row vectors, v1 and v2, each representing an integer, such that the vector elements are the digits from left to right,...

más de 9 años hace

Resuelto


what can you get for exactly amount of money
You go to store, where each product has price. Prices are in vector s= [ 195 125 260 440 395 290] and you have amount of ...

más de 9 años hace

Resuelto


find the Area of a rectangle
length is x width is y what is the area of the rectangle?

más de 9 años hace

Resuelto


Linear system of equations
Solve the system of equations in three variables.

más de 9 años hace

Resuelto


this is a test problem
this is a anniversary test problem

más de 9 años hace

Resuelto


Vector multiplication
Given two row vectors, v1 and v2, each representing an integer, such that the vector elements are the digits from left to right,...

más de 9 años hace

Resuelto


Roots of a quadratic equation.
Determine the roots of a quadratic equation., if coefficients a,b and c are given.

más de 9 años hace

Resuelto


Find unique number in input
Find value that occurs in odd number of input elements.

más de 9 años hace

Resuelto


Pad zero between every adjacent values of the vector.
you are given a vector x. you have to make an output vector y with zeros padded between every adjacent values of x. e.g x: ...

más de 9 años hace

Resuelto


Repeat the entries of the vector to their reference times in the vector.
e.g for input x: [ 7 3 9 5] output y: [ 7 3 3 9 9 9 5 5 5 5]

más de 9 años hace

Resuelto


S-T-R-E-T-C-H I-T O-U-T
You will be given a row of numbers (x), and a single number (n). Your job is to write a script that will stretch out the row of...

más de 9 años hace

Problema


S-T-R-E-T-C-H I-T O-U-T
You will be given a row of numbers (x), and a single number (n). Your job is to write a script that will stretch out the row of...

más de 9 años hace | 0 | 80 solvers

Resuelto


find square root of a positive real number
a number given, find the square root of that number

más de 9 años hace

Cargar más