Risolto


2D Indexes
Given in input the maximum degree P, the algorithm furnishes a ordered list of two dimensional vectors [i,j] i,j>=0 such that i+...

26 giorni fa

Risolto


Jump Search - 01
Find the number of leaps you need to take to find an element in an array using the jump search algorithm. For example, a=[ 2,...

27 giorni fa

Risolto


FloydWarshall
Our task is to find shortest paths between every pair of nodes. Floyd-Warshall is a graph algorithm for finding shortest paths i...

27 giorni fa

Risolto


Calculate the dynamic time warping similarity
Dynamic time warping (DTW) is an algorithm for measuring the similarity between two time series that may have been acquired at d...

27 giorni fa

Risposto
what's "error: x(7): out of bound 1 (dimensions are 1x1)"?
Use another letter/symbol for the function handle input variable, as x has already been defined as an array - % Define the data...

28 giorni fa | 1

| accettato

Risolto


Determine if given number is perfect
A number is <http://en.wikipedia.org/wiki/Perfect_number perfect> if it is equal to the sum of its factors, excluding itself. ...

29 giorni fa

Risposto
Cody: where's the Modeling and Simulation Challenge group?
Hi Christian, that particular group is not available on Cody anymore as the support for Simulink on Cody has been removed or res...

30 giorni fa | 3

| accettato

Risolto


Return the Nth Output from an Input Command
*Description* Given _F_, a cell array whose first element is a function handle and subsequent elements are arguments, return ...

circa un mese fa

Risolto


Best Fit RMS
Given a set of data as x and y, find the <http://en.wikipedia.org/wiki/Root_mean_square RMS> value between the data and its best...

circa un mese fa

Risolto


GJam 2014 China Rd A: Read Phone Number (Large)
This Challenge is derived from <http://code.google.com/codejam/contest/2924486/dashboard GJam 2014 China Read Phone Number>. Lar...

circa un mese fa

Risolto


GJam 2014 China Rd A: Read Phone Number
This Challenge is derived from <http://code.google.com/codejam/contest/2924486/dashboard GJam 2014 China Read Phone Number>. Sma...

circa un mese fa

Risposto
How to delete Multiple of any Value in Array In MATLAB
y=load('multiple.mat').Value; %all the different value present in the array z=unique(y) for j=unique(y) y( (rem(y,j)==0)...

circa un mese fa | 0

| accettato

Risolto


function on a moving window
Create a function that applies an operation (such as @sum, @mean, @std, @norm etc) to a moving window of the data. First exampl...

circa un mese fa

Risolto


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

circa un mese fa

Risolto


Moving average
A moving average function that returns an array that is equal in length to the input arrays (which can be row or column) A va...

circa un mese fa

Risolto


Segmented number sequence
Given a positive integer, n, and a row vector, x, of positive integers, return a row vector, v, which is a sequence of length n ...

circa un mese fa

Risolto


Whole Number Un-Concatenator
Write a function that accepts an integer and an index digit and returns a vector containing two integers which are the leading a...

circa un mese fa

Risolto


Integer sequence - 2 : Kolakoski sequence
Get the n-th term of Kolakoski Sequence.

circa un mese fa

Risolto


deconvolution
* Suppose there is a vector v like [1 0 0 -1], representing polynomial coefficients. * In this example, the polynimial is 1*x^3...

circa un mese fa

Risolto


Compute the dilation of a binary image
A basic operation in image analysis is the dilation. Given an image where each pixel is either on or off (black/white, true/fals...

circa un mese fa

Risolto


Index of neighbor pixel with steepest gradient
Unlike in various applications, where the gradient of a two dimensional matrix is calculated in x and y direction, the gradient ...

circa un mese fa

Risposto
Find value in Fibonacci sequence
You don't need to explicitly define condition for n == 1 and n == 2, they can be covered by how you define the sequence. Now, d...

circa un mese fa | 2

| accettato

Risolto


Compute a nested cube root
Consider the quantity . Write a function to compute without using loops or recursion.

circa un mese fa

Risposto
Show real positive solution on a fourth grade equation
Wo = 3584.74 * 9.8; %N rho = 1.225; %kg/m^3 D_r = 11.5; %m R_r = D_r/2; %m S_r = pi * R_r^2; %m^2 sigma_r = 0.073309651; o...

circa un mese fa | 0

| accettato

Risolto


how to determine is a point is inside, on or outside a polygon?
design function determines whether the point is inside a contour, outside, or lies on an edge (or coincides with a vertex). It r...

circa un mese fa

Risolto


compare strings
Given 2 strings and 3 actions (Insert,delete,replace) on characters. Find the difference between two strings. Example: str...

circa un mese fa

Risposto
Find the greater number in a matrix
This is a simple case of logical indexing. A=[01 ; 10 ; 11 ; 00]; B=[0.234 ; 0.148 ; 0.226 ; 0.118]; Z=B>=0.22; C=B(Z) D=...

circa un mese fa | 0

Risposto
How to convert decimal to binary without adding leading zeros?
You will not be able to do that in a char array, due to inconsistent dimensions. You can, however, obtain the desired result in...

circa un mese fa | 2

Risolto


Intersection points of a polynomial
Find the intersection points of a polynomial, given by its vector of coefficients with the X-axis and the Y-axis. Input: a poly...

circa un mese fa

Risposto
Can we distinguish between variables and parameters in a symbolic function?
syms f(x) a m n z f(x)=a*x y=symvar(f) I understand what you mean by 'cannot distinguish between x and a' But, this is how s...

circa 2 mesi fa | 0

| accettato

Carica altro