Gelöst


Calculate distance travelled when given radius and rotations
When given radius of wheel and number of rotations calculate total distance travelled consider pi=3.14

fast 13 Jahre vor

Beantwortet
why am i getting syntax error for linspace in If statement?
Take out the brackets { }

fast 13 Jahre vor | 0

| akzeptiert

Beantwortet
Importing data from Excel to Matlab problem
This has to do with the output arguments when you call xlsread. With only one output argument, only numerical data is read in in...

fast 13 Jahre vor | 0

Beantwortet
How do you transfer numeric data to an excel file?
If you want to read in numeric data, use a specifier like %d, %f, etc. The documentation for textscan gives a full list: http://...

fast 13 Jahre vor | 0

Gelöst


String substitution, sub problem to cryptoMath
This is a sub problem related to this problem: <http://www.mathworks.com/matlabcentral/cody/problems/621-cryptomath-addition>...

fast 13 Jahre vor

Gelöst


Sum of first n terms of a harmonic progression
Given inputs a, d and n, return the sum of the first n terms of the harmonic progression a, a/(1+d), a/(1+2d), a/(1+3d),....

fast 13 Jahre vor

Gelöst


Find the "ordinary" or Euclidean distance between A and Z
A, B and Z define three points in the 3D _Euclidean_ space of the form: A = [x1;y1;0]; B = [x2;y2;0]; Z = [x2;y2;z]; Find th...

fast 13 Jahre vor

Gelöst


Wrapping the Tower of Pisa
The famous artist Christo Vladimirov Javacheff, who likes pizza, wants to wrap the well-known Italian tower in paper. It is a ci...

fast 13 Jahre vor

Beantwortet
Can an edit text box's entries be limited to the range of an axis?
Inside the callback for your edit box, include some statements to check that the data doesn't exceed the bounds. Also, store the...

fast 13 Jahre vor | 0

| akzeptiert

Gelöst


Rotate input square matrix 90 degrees CCW without rot90
Rotate input matrix (which will be square) 90 degrees counter-clockwise without using rot90,flipud,fliplr, or flipdim (or eval)....

fast 13 Jahre vor

Beantwortet
creat a excel file from matlab
The "xlswrite" command should do what you need: help xlswrite xlswrite allows you to control the file to which your data...

fast 13 Jahre vor | 1

| akzeptiert

Gelöst


Project Euler: Problem 8, Find largest product in a large string of numbers
Find the greatest product of five consecutive digits in an n-digit number. 73167176531330624919225119674426574742355349194934...

fast 13 Jahre vor

Gelöst


Nearest
*Description* Find the value and index of the element in vector _x_ that is nearest to value _y_. _y_ should be able to be a ...

fast 13 Jahre vor

Gelöst


Remove the air bubbles
Given a matrix a, return a matrix b in which all the zeros have "bubbled" to the top. That is, any zeros in a given column shoul...

fast 13 Jahre vor

Beantwortet
Turn a checkbox green
Using the Matlab properties of your checkbox, you can only change the color of the font ( *ForegroundColor* ) and it's highlight...

fast 13 Jahre vor | 1

| akzeptiert

Beantwortet
while statements - imposing two conditions
Is Lnormpercentold a scalar or a vector? You can receive this error when attempting to use the && operator to compare logical ve...

fast 13 Jahre vor | 0

Gelöst


Check to see if a Sudoku Puzzle is Solved
*Description:* Your task, should you choose to accept it, is to make a function that checks to see if a 9x9 matrix of integer...

fast 13 Jahre vor

Gelöst


Determine if a Given Number is a Triangle Number
*Description:* Determine if the elements of an input array are triangle numbers and return the result as an array with the sa...

fast 13 Jahre vor

Gelöst


Filter values in a vector
Cody often benefits from a functional style of programming. For example, your score is often better when you compose multiple fu...

fast 13 Jahre vor

Gelöst


Project Euler: Problem 7, Nth prime
By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see that the 6th prime is 13. What is the Nth prime nu...

fast 13 Jahre vor

Gelöst


Possible Outcomes of American Roulette
The payout for American roulette can be calculated by: payout = (38/n)-1 where n is the number of squares the bet covers. ...

fast 13 Jahre vor

Gelöst


Apply a function array to an array of numbers
It is required to apply a cell array of functions to a numerical array, where the functions accept only scalar inputs. Exampl...

fast 13 Jahre vor

Gelöst


Perimeter
Given a sequence of points forming a closed path (first and last points are coincident) return the perimeter value. For example...

fast 13 Jahre vor

Gelöst


Continued fractions
Find a <http://en.wikipedia.org/wiki/Continued_fraction continued fraction> approximation of x.

fast 13 Jahre vor

Gelöst


Convert Two Character String into a Binary Vector
Given a string "XOXXO" convert it into a binary vector. [1 0 1 1 0] Paul Berglund implemented an optimal method in <http://ww...

fast 13 Jahre vor

Gelöst


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

fast 13 Jahre vor

Gelöst


More luck than brains
Give a random function that guess and return numbers from 1 to 6 exactly like the test suite .

fast 13 Jahre vor

Gelöst


Hackathon: the beginnings
I am thinking of a number between 1 and 10000... can you guess what this number is? *Description* The test suite has rando...

fast 13 Jahre vor

Gelöst


Remove the two elements next to NaN value
The aim is to *remove the two elements next to NaN values* inside a vector. For example: x = [6 10 5 8 9 NaN 23 9 7 3 21 ...

fast 13 Jahre vor

Gelöst


Minefield Sonar
*Background* In mine-hunting games (e.g. Microsoft Minesweeper), the user is provided with a covered grid that, upon a left c...

fast 13 Jahre vor

Mehr laden