A résolu


Let's Make A Deal: The Player's Dilemma 2
Suppose you're on a game show, and you're given the choice of three doors: Behind one door is a car; behind the others, goats. Y...

environ 2 mois il y a

A résolu


Let's Make A Deal: The Player's Dilemma
Suppose you're on a game show, and you're given the choice of three doors: Behind one door is a car; behind the others, goats. Y...

environ 2 mois il y a

A résolu


God of War: The Chains Of Olympus
The Spartan warrior, Kratos, is held by a chain of _n > 1_ links in the underworld. His only chance of survival is to break the ...

environ 2 mois il y a

A résolu


The Generalized-N Eggs Problem
A firm has invented a super-strong egg. For publicity purposes, it wants to determine the highest floor in a story building with...

environ 2 mois il y a

A résolu


Response of First Order Control Systems
In practice, the input signal to an automatic control system is not known ahead of time but usually random in nature. Thus, in t...

environ 2 mois il y a

A résolu


Nodal Voltage of Resistor Ladder Network
* You have a bunch (an even number N) of identical resistors (each R ohms), a good battery (V volts) and a high impedance voltme...

environ 2 mois il y a

A résolu


Implement Shor's algorithm
Shor's algorithm, proposed in 1994 by Peter Shor, is an algorithm for factoring numbers that runs in polynomial time (polynomial...

environ 2 mois il y a

A résolu


Array size along k-th dimension
Given an n-dimensional array M, find the size of M along the k-th dimension (1 <= k <= n), without using size(), height() or wid...

environ 2 mois il y a

A résolu


Solve the matrix equation AXB + X + C = 0 for X
Let A, B, and C be square matrices of equal size, and let the matrix X be defined by the matrix equation A * X * B + X + ...

environ 2 mois il y a

A résolu


Optimal saving in Solow's classical growth model
Let us consider a simplified version of Solow's classical growth model. Let , , , and denote production, the capital stock, l...

environ 2 mois il y a

A résolu


Compute rational expectations in a static, linear NKM model
Consider a static, linear approximation of the baseline New Keynesian macroeconomic model. This can be described by an IS equati...

environ 2 mois il y a

A résolu


Calculate the volume of the intersection of two balls
Consider two balls (solid spheres) in , with radius and respectively. Suppose that the distance between the centers of the two...

environ 2 mois il y a

A résolu


Create an empty array
Suppose you need an empty array. e = [] will give you one, but it's a double array, which may not help if you need a differen...

environ 2 mois il y a

A résolu


Remove runs of at least n consecutive NaNs
This problem is inspired by Dyuman Joshi's problem 58329. Given a row vector x and a natural number n, remove all runs of at lea...

environ 2 mois il y a

A résolu


Swap the column given with another one!
We have a random sized matrix A. You have to change the nth column with the kth column. The result must be a matrix B. For exam...

environ 2 mois il y a

A résolu


Find circular arc length, sector area and segment area
Given a circular arc passing through the points P = [ x1 y1 ] and Q = [ x2 y2 ] such that the center angle of the arc (in degree...

environ 2 mois il y a

A résolu


Rotate matrix 60 degrees
Given a 2*m-1 by 4*m-3 matrix in which certain elements form a hexagon of side length m, rotate the hexagon 60 degrees countercl...

environ 2 mois il y a

A résolu


Mystery problem
Given integer x between 1 and 50, return integer y=mystery(x), where mystery(1) = 111 mystery(6) = 809 ... mystery...

environ 2 mois il y a

A résolu


Convert vector of strings to lower triangular matrix
Given a non-empty vector vec of strings, please put its elements into the lower triangular half of a square matrix M column-wise...

environ 2 mois il y a

A résolu


N-Dimensional Sorting
Given two N-dimensional matrices A and B, first sort A in increasing order and then sort B with respect to the index of A. Y...

environ 2 mois il y a

A résolu


Number of bytes required to store a sparse matrix
The input will be a sparse matrix : x = sparse(100,1000,0.01); >>whos x shows that 8024 bytes ares required . The aim...

environ 2 mois il y a

A résolu


Convert nested struct-array to numeric array
Sometimes data happens to be nicely structured in a struct-array, distributed over various levels of the struct, according to th...

environ 2 mois il y a

A résolu


Wayfinding 5 - Travel contour
This is the fifth part of a series of assignments about wayfinding. The final goal of this series is to be able to calculate the...

2 mois il y a

A résolu


Wayfinding 4 - Crossing, level 2
This is the fourth part of a series of assignments about wayfinding. The final goal of this series is to be able to calculate th...

2 mois il y a

A résolu


Mmm! Multi-dimensional Matrix Multiplication
You have got a couple of multi-dimensional matrices, A and B. And want to multiply them. For the first 2 dimensions, an ordinary...

2 mois il y a

A résolu


Order of things - 3
This problem is closely related to <http://www.mathworks.nl/matlabcentral/cody/problems/2189-order-of-things-1 Problem 2189, Ord...

2 mois il y a

A résolu


Order of things - 2
This problem is closely related to <http://www.mathworks.nl/matlabcentral/cody/problems/2189-order-of-things-1 Problem 2189, Ord...

2 mois il y a

A résolu


A SUBSREF variant that accepts the 'end'-operator.
Unfortunately, Matlab's |subsref| function does not support the |end| -operator. The |end| -operator is a powerfull method to re...

2 mois il y a

A résolu


Make a KITT-scanner on the command line
Did you know that you can actually remove characters from the command-line window? Just send a 'backspace' character to the outp...

2 mois il y a

A résolu


Convert a substructure reference string into a valid definition structure for subsref and subsasgn
You have a reference to an element in a data structure, which you want to pass to a function. Not the value itself, but the refe...

2 mois il y a

Charger plus