已解决


Knights and Knaves (part 1)
This is a Matlab adaptation of the <http://en.wikipedia.org/wiki/Knights_and_Knaves Knights and Knaves> logical puzzles. You ...

14 years 前

已解决


Calculate the height of an object dropped from the sky
Assume that an object is dropped from 1000 meters above the surface of the earth at time t=0. The object is dropped such that t...

14 years 前

已解决


Use of regexp
* Given a string, containing several sentences, such as: * 'I played piano. John played football. Anita went home. Are you safe...

14 years 前

已解决


Create a patchwork matrix
This function will assemble a large matrix out of a number of smaller ones m1, m2, etc., according to a pattern P. If P is 3x5,...

14 years 前

已解决


Insert zeros into vector
Insert zeros after each elements in the vector. Number of zeros is specified as the input parameter. For example: x = [1 ...

14 years 前

已解决


Say something funny
Say something funny, or not. Your solution will be (fully automatically and objectively) scored based on how clever or funny ...

14 years 前

已解决


Hangman (strategy)
What is the best strategy in a <http://en.wikipedia.org/wiki/Hangman_(game) hangman> game? Your job is to device a strategy t...

14 years 前

已解决


Hangman (easy)
What is the best letter to start a <http://en.wikipedia.org/wiki/Hangman_(game) hangman> game with? You are given a cell arra...

14 years 前

已解决


rotating a matrix
if x is the input argument,rotate it 90 degrees without using rot90 function.

14 years 前

已解决


Sort a vector
Sort a row vector without using MATLAB built_in function sort, descending or ascending as mentioned with t='de' or t='as'.

14 years 前

已解决


distance between two points
compute distance between two points,where it is in Cartesian, Polar or Spherical coordinates.

14 years 前

已解决


matrix of natural number
Given a number n, create an n-by-n matrix in which the integers from 1 to n^2 resides seially as shown in the examples below. ...

14 years 前

已解决


Polynomial division
Divide a polynomial u by polynomial v and return the quotients only. Example: u = x^4+3*x^3+5*x+3 v = x^2+1 Answer: ...

14 years 前

已解决


2D - Mean Filter
Assume you are given an "image" matrix of size NxM. Reduce the image noise by implementing a mean filter window of size 9 (a 3x3...

14 years 前

已解决


Golomb's self-describing sequence (based on Euler 341)
The Golomb's self-describing sequence {G(n)} is the only nondecreasing sequence of natural numbers such that n appears exactly G...

14 years 前

问题


Golomb's self-describing sequence (based on Euler 341)
The Golomb's self-describing sequence {G(n)} is the only nondecreasing sequence of natural numbers such that n appears exactly G...

14 years 前 | 3 | 194 个解题者

已解决


Wheat on a chessboard pt 2
If a chessboard were to have wheat placed upon each square such that x grains were placed on the first square and each successiv...

14 years 前

已解决


Wheat on a chessboard pt 1
If a chessboard were to have wheat placed upon each square such that one grain were placed on the first square and each successi...

14 years 前

已解决


The Answer to Life, the Universe, and Everything
A variation of a previous Hitchhiker's Guide to the Galaxy problem. *Inputs:* Life, the Universe, and Everything *Output:*...

14 years 前

已解决


finding indices of a vector's elements
you have vector x,as input,sort it ascending by mathlab function or your own code,then in the new vector,sorted_x,for each eleme...

14 years 前

已解决


Return 'on' or 'off'
When the input is true, return 'on', otherwise, return 'off'.

14 years 前

已解决


Gene Sequence Contest: Retro
The <http://www.mathworks.com/matlabcentral/contest/contests/21/rules Full Gene Sequence Rules and examples>. This Challenge ...

14 years 前

已解决


Binpack Contest: Retro
The <http://www.mathworks.com/matlabcentral/contest/contests/3/rules Full Binpack Rules and examples>. This Challenge is a re...

14 years 前

已解决


Identify the heavier bag
There are N=2^n bags of rice looking alike, N-1 of which have equal weight and one is slightly heavier. The weighing balance is ...

14 years 前

已解决


Calculate Alcohol By Volume with Original and Final Gravity
Given an initial gravity of un-fermented wort (OG) and a final gravity of fermented wort (FG), better known as beer, it is possi...

14 years 前

已解决


Volume difference between Ellipsoid and Sphere
Given an ellipsoid of semi principal axis (a,b,c) find the volume of the difference between this ellipsoid and the sphere with...

14 years 前

已解决


Decrypt Polybius
Decrypt Polybius square. Please refer to <http://www.mathworks.com/matlabcentral/cody/problems/1150-polybius-square Problem 11...

14 years 前

已解决


Polybius Square
Given a string, calculate the coordinates. Input will be always in lowercase. If string is a sentence then use 0 (zero) to indic...

14 years 前

已解决


Sum the Digits of a Number
Given an integer, sum the digits repeatedly until you end up with a single value less than 10. For example, if you add the di...

14 years 前

已解决


Accessing elements on the diagonal
Access the diagonal elements of a matrix without 'diag' function

14 years 前

加载更多