Resuelto


Find max prime number
Given integer number n. Find the max prime number (mpn) that smaller than or equal to n. Example: n = 10 --> mpn = 7

alrededor de 5 años hace

Resuelto


Find the number that has most primes those less than it
Given an vector x of integer numbers, find the element of x that has the most primes less than it.

alrededor de 5 años hace

Resuelto


Usage of varargout
This Challenge is to demonstrate usage of varargout. Output a cell array using varargout of magic squares of size 1 thru n. ...

alrededor de 5 años hace

Resuelto


How to multiply?
* Imagine you are in 3012 Anno Domini, when everyone must learn how to multiply, * and competing for the highly prestigious pos...

alrededor de 5 años hace

Resuelto


How to add?
* Imagine you are in 2222 Anno Domini, when everyone must learn how to add, * and competing for the highly prestigious post of,...

alrededor de 5 años hace

Resuelto


Solving Quadratic Equations (Version 2)
Before attempting this problem, solve version 1: <https://www.mathworks.com/matlabcentral/cody/problems/2510-solving-quadratic-...

alrededor de 5 años hace

Resuelto


Perl 2: pop
_This is part of a series of perl function which were very helpful for many perl programmers. Could you implement it in Matlab?_...

alrededor de 5 años hace

Resuelto


Infinite precision division
Develop a function that will divide a very very large integer numerator, supplied to function as a string (e.g., '12233344445555...

alrededor de 5 años hace

Resuelto


Array ex-OR
There are in MATLAB logical functions such as _<http://www.mathworks.co.uk/help/matlab/ref/and.html and>,_ _<http://www.math...

alrededor de 5 años hace

Resuelto


Please check the last row
We have data of matrix, that is input. That contains 2 or more rows and the last row should contain the average of each column,...

alrededor de 5 años hace

Resuelto


Perl 1: push
_This is part of a series of perl function which were very helpful for many perl programmers. Could you implement it in Matlab?_...

alrededor de 5 años hace

Resuelto


The Birthday Phenomenon
First off, leap years are not being considered for this. In fact the year that people are born shouldn't be taken into considera...

alrededor de 5 años hace

Resuelto


Interior angles
Find the sum of interior angles for polygon of x sides.

alrededor de 5 años hace

Resuelto


Convert number from given base to other base
Convert number from given base to other base. Example 400 in base 5, find equivalent number in base 8, it is 144.

alrededor de 5 años hace

Resuelto


Find difference of two set as per example
Find difference of two set as per example Say x=[1:5] and y=[2:6] then, set_diff(x,y) should give output[1] and set_diff(y...

alrededor de 5 años hace

Resuelto


Find scalar product of two polynomials a and b, given as vector array.
Find scalar product of two polynomials given as vector array. Example a=[1 -1 2]; b=[2 4 1]; result=0

alrededor de 5 años hace

Resuelto


Calculate roots of polynomial given as vector array.
Calculate roots of polynomial given as vector array. Example x=[1 2 0 5 0 3] result=[-2.7267 ; ...

alrededor de 5 años hace

Resuelto


Solve t^(a*x^2+b*x+c)=s
Solve t^(a*x^2+b*x+c)=s. Return x vector as result. Example a=1, b=2, c=1, t=3, s=15. Result x(1)= 0.5700 x(2)=-2.5700 H...

alrededor de 5 años hace

Resuelto


given number is power of n or not?
Check weather The input is power of n or not? for example x=8,n=2 --> true x=6,n=2 --> false

alrededor de 5 años hace

Resuelto


Increase monotonically
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

alrededor de 5 años hace

Resuelto


Slope of the line passing through two points
Determine the slope of a line passing through the points a=[x1 y1] and b=[x2 y2].

alrededor de 5 años hace

Resuelto


Product of all elements in an array
Compute the product of all elements in an array.

alrededor de 5 años hace

Resuelto


Create incremental spiral WITHOUT USING EVAL or FEVAL
Constructions that use feval or eval are used to cheat with cody. This test-suite tries to avoid that trick. The goal of this...

alrededor de 5 años hace

Resuelto


Adding Numbers
Add the input numbers to the original.

alrededor de 5 años hace

Resuelto


Calculate the CIRCUMFERENCE of circle.
Given the radius is 2, the circumference will be 12.5663.

alrededor de 5 años hace

Resuelto


Permutations of input vector
Find and output all permutations of given vector

alrededor de 5 años hace

Resuelto


Adding Cells with numbers defined as strings
Given a cell, with strings representing numbers, add each value. For example: a = {'9','33'}; the output should be: ...

alrededor de 5 años hace

Resuelto


cube of number
find cube of number

alrededor de 5 años hace

Resuelto


square of a number
find square of a given number

alrededor de 5 años hace

Resuelto


square root
Find square root of given number

alrededor de 5 años hace

Cargar más