Risolto


IQpuzzler Preparation #3: Detect isolated groups of zeros in a matrix
Return true if any small, rectangular shaped, isolated groups of zeros (size 1x1, 1x2, 2x1, 1x3, 3x1 or 2x2) are present in a ma...

24 giorni fa

Risolto


IQpuzzler Preparation #1: Find all non-identical orientations of a matrix
Return all non-identical orientations of a 2-D matrix that can be produced by rotating or flipping it. Input is an M-by-N matri...

24 giorni fa

Risolto


Find the point of intersection of tangents.
Given two points on a conic, find the point of intersection of the corresponding tangents. The conic is given in Cartesian coor...

24 giorni fa

Risolto


Merge structs on fields
Merge a bunch of structs into one, containing the field names and corresponding values of all input structs. For duplicate field...

24 giorni fa

Risolto


arrayfun bomb

24 giorni fa

Risolto


Define the higher order function - foldl
Given a binary function f, a starting value a, and a list (row vector) xs of values, the higher order function foldl folds the f...

24 giorni fa

Risolto


Roots, Bloody Roots: part 1/2

25 giorni fa

Risolto


Compute the cokurtosis of a given portfolio.
As input data, you are given a nObs-by-nAssets matrix _portRet_ of return series for assets in a portfolio along with an nAssets...

25 giorni fa

Risolto


Spell the number
Using the British short scale notation, write a function to return the correct spelling of a number passed as a numeric string i...

25 giorni 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...

25 giorni fa

Risolto


How many ways to write
How many ways to write a positive integer x as the sum of n numbers , where , x>n and no n number is less than -2.

25 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...

25 giorni fa

Risolto


Arc length of points interpolation
Given a n by m matrix representing m vectors in n dimensions. Calculate the <https://en.wikipedia.org/wiki/Arc_length arc length...

25 giorni fa

Risolto


Simple Robotics 2 - End effector attitude
Given a structure as input to your function with the following fields: * robot.links(L1,L2,L3) * robot.jointangles(alfa1,alfa2...

25 giorni fa

Risolto


Possible American Football Scoring Combinations
With inspiration from Problem 56195. Possible Ruby Scores, given the final score for two teams in an American football game (sco...

25 giorni fa

Risolto


Vector to Decimal
Given an integer vector , return its decimal representation as a character array. % Examples v = 7 x = '7' % v = [4 2] x...

26 giorni fa

Risolto


Mantissa of IEEE Single
Output the mantissa bits as a uint32 of the IEEE representation of the single-typed 32-bit float input. Store these bits in the ...

26 giorni fa

Risolto


Calculate pi using the Mandelbrot Set.
The Mandelbrot Set is a set of complex numbers built around a simple iterative equation for which the orbit of the critical poin...

26 giorni fa

Risolto


Find Sign(Zero Crossing) Changes in Array
Example; A = [1 2 3 -3 -4 -1 -24 2 4 -1 -2 3 1]; ans; [1 2 0 -3 -4 -1 0 2 0 -1 ...

26 giorni fa

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

26 giorni fa

Risolto


Find stiffness of all beams for single floor in building
Create a function that finds this stiffness k of all the beams (also known as 'stanchions') for one floor of a three storey buil...

26 giorni fa

Risolto


Pay up
You live in a world where arbitrary denominations of currency exist. You owe your friend a sum of money denoted by s. However, i...

26 giorni fa

Risolto


Undocumented MATLAB tricks No. 1 - Save a function-returned struct
Often we face the case when we want to save a function-returned struct to a mat file with each of its field as individual variab...

26 giorni fa

Risolto


Climbing the stairs

26 giorni fa

Risolto


Beat the RNG - Passwords

26 giorni fa

Risolto


Shape Shifter - Part 1

26 giorni fa

Risolto


Probability of winning single-elimination tournament
Find the probability that the p^{th} player will win a single-elimination tournament with 2^n players where M(i,j)=probability t...

26 giorni fa

Carica altro