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

más de 6 años hace

Resuelto


Calculating large fibonacci numbers
The fibonacci sequence starts 1,1,2,3,5,8... Find the the n'th fibonacci number. Then calculate round(log10( . )) of that n't...

más de 6 años hace

Resuelto


Times 7
Try out this test problem first. Given the variable x as your input, multiply it by seven and put the result in y. Example...

más de 6 años hace

Resuelto


Times 11
Try out this test problem first. Given the variable x as your input, multiply it by eleven and put the result in y. Exampl...

más de 6 años hace

Problema


Evaluate the incomplete elliptic integrals
Elliptic integrals can be used to evaluate integrals whose integrands have the form R(x,sqrt(P(x))), where R(x,y) is a rational ...

más de 6 años hace | 2 | 18 solvers

Resuelto


Nearest
*Description* Find the value and index of the element in vector _x_ that is nearest to value _y_. _y_ should be able to be a ...

más de 6 años hace

Resuelto


commutative?
Given the handle to a binary function that takes two ordinary numbers, test if the function is commutative.

más de 6 años hace

Resuelto


root?
* Given a function 'foo', and a position 'there', find the root near 'there'. * For example: If foo=@sin, and there=3.1, then r...

más de 6 años hace

Problema


Compute the perimeter of an ellipse
While the area of an ellipse is straightforward to compute, the perimeter (or circumference) is more complicated. The perimeter ...

más de 6 años hace | 1 | 29 solvers

Resuelto


calculate PI without using pi function
There are many methods to get the pi(Ratio of circumference to diameter). You should get pi without using the pi function in M...

más de 6 años hace

Resuelto


Permute diagonal and antidiagonal
Permute diagonal and antidiagonal For example [1 2 3;4 5 6;7 8 9] -> [3 2 1;4 5 6;9 8 7] WITHOUT diag function (and variable n...

más de 6 años hace

Resuelto


Basic Quadratic Equation
Create the equation: y=(3x)^2+(5x)+35 and compute y for various values of x

más de 6 años hace

Resuelto


Create incrementing array
Given a and b generate an output matrix as shown in following examples: a=2 b=5 output=[2 20 200 2000 20000] a=4 b...

más de 6 años hace

Resuelto


Determine the length of a string of characters
Determine the length of a string of characters

más de 6 años hace

Resuelto


Find and replaces spaces from a input string with *
For a given input string str, find how many spaces are there in the string and replace those spaces with * e.g. str = 'this is ...

más de 6 años hace

Resuelto


Convert Fahrenheit to Celsius
Calculate the Celsius temperature C given the Fahrenheit temperature F. Examples: Input F = 90 Output C is 32.22 I...

más de 6 años hace

Resuelto


Who knows the last digit of pi?
There is only one man who knows the last digit of pi, who is that man? Give the name of that man, who, by popular believe, can ...

más de 6 años hace

Resuelto


Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
The given function returns the index of the maximum value in a given matrix. such as X=[4,3,4,5,9,12,0,5] Ans= 6 if maxim...

más de 6 años hace

Resuelto


Remove white space from the string
Remove the white spaces (trailing and leading) from the input variable

más de 6 años hace

Resuelto


Phonebook-like problem
strcmpi('Yes', 'No')

más de 6 años hace

Resuelto


Matrix with different incremental runs
Given a vector of positive integers a = [ 3 2 4 ]; create the matrix where the *i* th column contains the vector *1:a(i)...

más de 6 años hace

Resuelto


Area of Triangle with Oblique Coordinates
Find area of triangle given points p1, p2, and p3 where the y-axes is w degrees counter clockwise from the x-axes. For exampl...

más de 6 años hace

Resuelto


Inverse of Hilbert matrix
Given a non-negative integer x, return the element-wise power of 2 of the inverse of Hilbert matrix.

más de 6 años hace

Resuelto


That's some divisor you've got there...
Given a positive integer x, calculate the sum of all of the divisors of the number. Please include the number itself in your fi...

más de 6 años hace

Resuelto


Regular polygon bounded by and bounding a circle
As the number of sides (or vertices) of a regular polygon goes to infinity, its perimeter and area go to the perimeter and area ...

más de 6 años hace

Resuelto


Set some matrix elements to zero
First get the maximum of each *row*, and afterwards set all the other elements to zero. For example, this matrix: 1 2 3 ...

más de 6 años hace

Resuelto


Rotate input square matrix 90 degrees CCW without rot90
Rotate input matrix (which will be square) 90 degrees counter-clockwise without using rot90,flipud,fliplr, or flipdim (or eval)....

más de 6 años hace

Problema


Evaluate the Struve function
The <https://en.wikipedia.org/wiki/Struve_function Struve function> *H*_a(x) is a solution to an inhomogeneous form of Bessel's ...

más de 6 años hace | 2 | 23 solvers

Resuelto


Calculating selling price
Cost of a Product is $x What should be the selling price if you want to gain 10%?

más de 6 años hace

Resuelto


find a specific element from an matrix
Find the element from matrix which is in 2nd row and 3rd column.

más de 6 años hace

Cargar más