Resuelto


Where is the number that you want to find?
For a given matrix A, find where the input number x appears. Do this task by returning the vector which contains the row and th...

alrededor de 10 años hace

Resuelto


Get factory-defined property values
Given a property name (e.g. 'AxesUnits', 'LineMarkerSize', 'UicontrolBackgroundColor'), return the factory-defined value for tha...

alrededor de 10 años hace

Resuelto


Maximum of ND-array
Find the maximum element of a N dimensional array. Example: A=[1 2 4 ; -20 4 10]; The maximum is 10.

alrededor de 10 años hace

Resuelto


Check if a directory is on the current MATLAB search path
Given a directory name as a string, return true if the directory is on the current MATLAB search path, and false otherwise.

alrededor de 10 años hace

Resuelto


Find the next Fibonacci number
In the sequence of Fibonacci numbers, every number is the sum of the two preceding ones: 1, 1, 2, 3, 5, 8, 13, 21, 34, 55...

alrededor de 10 años hace

Resuelto


Solve system of equation!
Given provided system of equation, and find x and y. System of equation can be expressed as each term's coefficient. For exam...

alrededor de 10 años hace

Resuelto


Probabilities - Balls and urns - 02
The urn contains B blue balls and R red balls. Each trial consists of drawing one random ball from the urn and observing its col...

alrededor de 10 años hace

Resuelto


balance vector
Given a non-empty vector x with integer elements. x shall be called balance vector if one can split the elements of x into two g...

alrededor de 10 años hace

Resuelto


how to concatenate matrices
What is the name of the function used to create a matrix C form two matrices A and B, using the syntax: C = [A B]; Outpu...

alrededor de 10 años hace

Resuelto


4 Digit Sequence Repetitions
Given a 4 digit integer, a sequence can be created such that the next digit in the sequence is the ones digit from the sum of th...

alrededor de 10 años hace

Resuelto


Flipping a Matrix
Flipping matrix up and down. If a middle row is exists, leave it, and flip remaining rows. Example Mat = magic(3) ...

alrededor de 10 años hace

Resuelto


Euclidean distance from a point to a polynomial
A not uncommon problem in the area of computational geometry is to find the closest point to a straight line from a given point,...

alrededor de 10 años hace

Resuelto


create a square matrix
create a [n*n] matrix. example: mat(4)= [ 1 4 9 16 4 4 9 16 9 9 ...

alrededor de 10 años hace

Resuelto


Eplicate and Tile an array !
Eplicate and Tile an array ! ex) A=[1 2 3; 4 5 6; 7 8 9;] B = Epli_and_Tile(A,1,2) B= [ 1 2 3 1 2 3...

alrededor de 10 años hace

Resuelto


center of mass
R is a given matrix with size [n,2]. R(i,:) is interpreted as the 2D-position of a mass point with mass i. Calculate the center ...

alrededor de 10 años hace

Resuelto


Where is 1?
There is a 3d matrix [A] that consist of many zeros and only one. A=zeros(100,100,100); i=randi(100); j=randi(100); ...

alrededor de 10 años hace

Resuelto


Return the sequence element III
This problem is related to <http://www.mathworks.com/matlabcentral/cody/problems/42832-segmented-number-sequence Problem 42832>....

alrededor de 10 años hace

Resuelto


Frobenius McNugget Factorization
Mr. Frobenius McNugget is a peculiar man. As you might expect, he likes to eat Chicken McNuggets. But his love of number the...

alrededor de 10 años hace

Resuelto


GJam March 2016 IOW: Password Single
This Challenge is derived from <http://code.google.com/codejam/contest/8274486/dashboard#s=p3 GJam March 2016 Annual I/O for Pas...

alrededor de 10 años hace

Resuelto


Iterative sum of digits of 2^n number
Given n, calculate the number 2^n (where n>=0) and *iterate* until the sum of the digits is a single-digit number. Example: ...

alrededor de 10 años hace

Resuelto


Persistence will help you solve almost any problem.
Create a function without inputs that adds one to the output every time it is called. a = counterfun; disp(a) >> 1 ...

alrededor de 10 años hace

Resuelto


how to find characteristic polynomial of a given matrix?
how to find characteristic polynomial of a given matrix?

alrededor de 10 años hace

Resuelto


Odd times even numbers in a matrix
First count the number of odd numbers in x, then the number of even. Return their product. example: x = [1 2] One odd ...

alrededor de 10 años hace

Resuelto


HOW TO FIND SINGULAR VALUE OF A MATRIX?
HOW TO FIND SINGULAR VALUE OF A MATRIX?

alrededor de 10 años hace

Resuelto


How many complete pizzas
x is a vector with numbers of pizza slices. A corresponding vector n indicates in how many slices the pizza slices of x were cut...

alrededor de 10 años hace

Resuelto


Determine the roots of a cubic equation
Given the coefficients a, b, c, and d of a cubic equation, a*x^3 + b*x^2 + c*x + d = 0, determine its roots.

alrededor de 10 años hace

Resuelto


What's my favourite food?
The spicier the better.

alrededor de 10 años hace

Resuelto


Wrap-around effect
In vector x of length n we define (n+1) position as going back to the first position (so called wrap-around effect). Can you ret...

alrededor de 10 años hace

Resuelto


Project Euler: Problem 14, Longest Collatz sequence
The following iterative sequence is defined for the set of positive integers: n → n/2 (n is even) n → 3n + 1 (n is odd) U...

alrededor de 10 años hace

Resuelto


Addition Partition
You will be given two numbers, N and K. Write a MATLAB function that will determine how many different unique ways you can have...

alrededor de 10 años hace

Cargar más