Resuelto


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

casi 13 años hace

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

casi 13 años hace | 0

| aceptada

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

casi 13 años hace | 0

Respondida
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://...

casi 13 años hace | 0

Resuelto


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

casi 13 años hace

Resuelto


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

casi 13 años hace

Resuelto


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

casi 13 años hace

Resuelto


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

casi 13 años hace

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

casi 13 años hace | 0

| aceptada

Resuelto


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

casi 13 años hace

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

casi 13 años hace | 1

| aceptada

Resuelto


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

casi 13 años hace

Resuelto


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

casi 13 años hace

Resuelto


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

casi 13 años hace

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

casi 13 años hace | 1

| aceptada

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

casi 13 años hace | 0

Resuelto


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

casi 13 años hace

Resuelto


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

casi 13 años hace

Resuelto


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

casi 13 años hace

Resuelto


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

casi 13 años hace

Resuelto


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

casi 13 años hace

Resuelto


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

casi 13 años hace

Resuelto


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

casi 13 años hace

Resuelto


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

casi 13 años hace

Resuelto


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

casi 13 años hace

Resuelto


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

casi 13 años hace

Resuelto


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

casi 13 años hace

Resuelto


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

casi 13 años hace

Resuelto


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

casi 13 años hace

Resuelto


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

casi 13 años hace

Cargar más