Gelöst


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

mehr als 9 Jahre vor

Gelöst


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

mehr als 9 Jahre vor

Gelöst


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

mehr als 9 Jahre vor

Gelöst


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

mehr als 9 Jahre vor

Gelöst


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

mehr als 9 Jahre vor

Gelöst


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

mehr als 9 Jahre vor

Gelöst


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

mehr als 9 Jahre vor

Gelöst


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

mehr als 9 Jahre vor

Gelöst


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

mehr als 9 Jahre vor

Gelöst


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

mehr als 9 Jahre vor

Gelöst


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

mehr als 9 Jahre vor

Gelöst


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

mehr als 9 Jahre vor

Gelöst


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

mehr als 9 Jahre vor

Gelöst


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

mehr als 9 Jahre vor

Gelöst


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

mehr als 9 Jahre vor

Gelöst


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

mehr als 9 Jahre vor

Gelöst


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

mehr als 9 Jahre vor

Gelöst


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

mehr als 9 Jahre vor

Gelöst


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

mehr als 9 Jahre vor

Gelöst


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

mehr als 9 Jahre vor

Gelöst


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

mehr als 9 Jahre vor

Gelöst


this is a test problem
this is a anniversary test problem

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Gelöst


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]

fast 10 Jahre vor

Gelöst


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

fast 10 Jahre vor

Problem


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

fast 10 Jahre vor | 0 | 80 Lösungsvorschläge

Gelöst


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

fast 10 Jahre vor

Mehr laden