Resuelto


Vector Magnitude Calculator
'a' is a vector that starts at the origin and ends at (x, y). Find ||a||. Hint: It is as simple as "ABC".

alrededor de 9 años hace

Resuelto


How many solutions has this problem?
Guess, predict or calculate :-) (You will be scored by the accuracy). Update: <http://www.mathworks.co.uk/matlabcent...

alrededor de 9 años hace

Resuelto


Narcissistic problem
How many likes has this problem?

alrededor de 9 años hace

Resuelto


Pandigital number n°1 (Inspired by Project Euler 32)
A little warm-up to begin... An n-digit number is pandigital if it makes use of all the digits 1 to n exactly ONCE. For ex...

alrededor de 9 años hace

Resuelto


Test within tolerance
Given a vector of experimental data, D, and a vector of truth data, T, return FALSE if any +/- errors (D-T) are outside a given ...

alrededor de 9 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 9 años hace

Resuelto


Sum of big primes without primes
Inspired by Project Euler n°10 (I am quite obviously a fan). With problem n°250 by Doug, you can find some global methods to ...

alrededor de 9 años hace

Resuelto


Path calculation with polynomials
Let a vector x be the input to our function. 1. If a value of an input vector element x is lower than 0, set this value to 0....

alrededor de 9 años hace

Resuelto


Find maximum value of a curve
Two vectors shall be already defined: - Input vector x (e.g. x = 0:1:10) - Result vector y (e.g. y = sin(x)) Create a n...

alrededor de 9 años hace

Resuelto


Elements with highest local average
Input v is a row vector such that length(v)>3. Consider a sliding window of length 3 that is used to calculate the local average...

alrededor de 9 años hace

Resuelto


Sort the vector with the given index
Given x = [1 2 4 8 17] and t = [1 3 2 5 4] then y = [1 4 2 17 8].

alrededor de 9 años hace

Resuelto


Integer Sequence - 1
Check the test suite to determine the relationship between input integer scalar and output integer scalar.

alrededor de 9 años hace

Resuelto


Convert a vector into numbers
Suppose a vector x = [ 1 2 4 7] is given. You have to convert this vector into string number y = '1247'. Examples x = [ 1...

alrededor de 9 años hace

Resuelto


Are you in XY plane?
Take a point P as an input position Vector (x,y,z). If you are in XY plane, return 1 as an output otherwise return 0. Example...

alrededor de 9 años hace

Resuelto


Leap Year
According to Gregorian Calender(which is in use now, in many countries),decide whether a given year is a leap year or not. Give...

alrededor de 9 años hace

Resuelto


Reshape a Vector
Write a function that accept three inputs. The first one is a row vector S. The second and third arguments are m and n which de...

alrededor de 9 años hace

Resuelto


Find the biggest digit in a matrix
Write a function to find the biggest digit in a matrix; input -> a matrix output -> a digit For example; [12; 47;...

alrededor de 9 años hace

Resuelto


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

alrededor de 9 años hace

Resuelto


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

alrededor de 9 años hace

Resuelto


Is My Wife Wrong?
Answer the question. (see also <http://www.mathworks.com/matlabcentral/cody/problems/149-is-my-wife-right Problem 149: Is my ...

alrededor de 9 años hace

Resuelto


Let's see how peculiar we can get
The task is to multiply two numbers. But do it in the most peculiar possible way.

alrededor de 9 años hace

Resuelto


Square Diagonal
If n is the given number, then make a diagonal matrix of size 2*2 with the square of that number.

alrededor de 9 años hace

Resuelto


Find the relation
Take x as input and y as output. If x=1 y=3 If x=2 y=14 If x=3 y=39 If x=4 y=84 Based on this relation find giv...

alrededor de 9 años hace

Resuelto


Product of elements in row
Product of matrix such that a=[3 3 1] b=9

alrededor de 9 años hace

Resuelto


grazing cows
Here is a fun problem I encountered in high school. Two cows are grazing in an enclosed square-shaped field of side length s ...

alrededor de 9 años hace

Resuelto


Area of a circle
Find the value for area of the circle if diameter is given

alrededor de 9 años hace

Resuelto


Find the area of a rectangle if length of the diagonal is given.
if length of a diagnonal in rectangle is 5. Its area is 12.

alrededor de 9 años hace

Resuelto


Calculate the h-index
H-index is a powerful tool for quantifying the scientific contribution of a researcher. H-index is defined as follows (source - ...

alrededor de 9 años hace

Resuelto


Get the variable value from a string and generate sum
Get the variable value from a string. Example. x = 'A=10' y = 'B=20' Result = (x+y) Result = 30

alrededor de 9 años hace

Resuelto


No more zeros
Given an array with zeros at the beginning or at the end, you should get the output without these zeros: input = [zeros(5...

alrededor de 9 años hace

Cargar más