Solved

Evaluate Polynomial
Given a polynomial equation coefficients in a vector p, you have to return its value at x. Example: For inputs p and x ...

más de 1 año ago

Solved

Largest Prime Number
Given a matrix X, find the largest prime number in X.

más de 1 año ago

Solved

Basics - not so easy division
Please make a function whcih divides x/y, but pay attention for some exceptions with NaN,0,Inf. Sometimes return "ERROR" instead...

más de 1 año ago

Solved

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

más de 1 año ago

Solved

Kelvin to Celsius
Degrees Celsius = degrees Kelvin - 273.15. Given a temperature in Kelvin, return the equivalent temperature in Celsius.

más de 1 año ago

Solved

Kolakoski Sequence
This is a modified version of the kolakoski sequence. Refer to the problem <https://www.mathworks.com/matlabcentral/cody/p...

más de 1 año ago

Solved

Integer sequence - 2 : Kolakoski sequence
Get the n-th term of <https://oeis.org/A000002 Kolakoski Sequence>.

más de 1 año ago

Solved

Average speed for the entire trip
The input is two speeds (for the trip and return trip) and output is average speed. Assume units are consistent, say miles per h...

más de 1 año ago

Solved

Vector LCM
* Find Least Common Multiple of a given vector. * Need general solution as the test suite will be expanded. * Function Templa...

más de 1 año ago

Solved

prime test 2
enter the only non prime,non composite number

más de 1 año ago

Solved

Sum of series VII
What is the sum of the following sequence: Σ(km^k)/(k+m)! for k=1...n for different n and m?

más de 1 año ago

Solved

Polygonal numbers
The task of <http://www.mathworks.co.uk/matlabcentral/cody/problems/5 Problem 5> is to calculate triangular numbers. By playing ...

más de 1 año ago

Solved

Determine the radius of a sphere provided four non-coplanar points on the surface of the sphere. pts = [x1 y1 z1; x...

más de 1 año ago

Solved

Area of a Square
Given the length x of the side of a regular square, find the area of the square, A.

más de 1 año ago

Solved

Elapsed time is -0.005204 seconds.
Write a function that takes less than zero seconds to execute, as measured using tic and toc. For repeatability, the test case p...

más de 1 año ago

Solved

Capitilize the first letter of every word in a string
For a given input string, capitalize every letter at the beginning of a word, and transform the rest of the letters to lower-cas...

más de 1 año ago

Solved

Unit conversion
Convert x degree Celsius to y degree Fahrenheit.

más de 1 año ago

Solved

Put Two 1D matrices into one 1D matrix
Example: If input a = [1 2 3 4 5]; input b = [10 9 8 7 6]; then output will be, y_correct = [1 10 2 9 3 8 4 7 5...

más de 1 año ago

Solved

Replace values under a limit
For a vector x and number n, the goal is to find every element of x inferior to n and replace it by n. Example x= [ 1 2 3...

más de 1 año ago

Solved

Matrix with different incremental runs
Given a vector of positive integers a (>=0); How does one create the matrix where the ith column contains the vector 1:a(i) poss...

más de 1 año ago

Solved

Find Factrorial without using built-in function
A number is given, you have to find the factorial of the number without using built-in factroial function. You may use loops....

más de 1 año ago

Solved

Find the square of the sum of the digits of a number
If a number (n) is provided as an input, find the square of the sum of the digits of the number. Example If n = 21, the an...

más de 1 año ago

Solved

Generate the Matrix!
Given n, generate the following matrix: a = [ n n-1 n-2 ... 2 1; n-1 n-1 n-2 ... 2 1; n-2 n-2 n-2 ... 2 1;...

más de 1 año ago

Solved

Volume of a sphere given its surface area
You just measured its surface area, that is the input.

más de 1 año ago

Solved

calculate linear convolution two vectors
for e.g in: a = [1 2 3] b = [4 5 6] out: y = [4 13 28 27 18]

más de 1 año ago

Solved

calculate RMS voltage
given peak to peak voltage, calculate rms voltage

más de 1 año ago

Solved

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

más de 1 año ago

Solved

Test of Quiz
Answer the questions and write in vector. Only one answer is correct. The founder of fuzzy logic is 1a) D. Golberg 1b)...

más de 1 año ago

Solved

Sum the real and imaginary parts of a complex number
Sum the real and imaginary parts of a complex number. Example c = 1+2i has the solution 1 + 2 = 3

más de 1 año ago

Solved

Clock Hand Angle 1
Given a time in HH:MM:SS, find the smallest angle (in degrees) between the hour and minute hand

más de 1 año ago