Problem


Distance walked 2D
Suppose you go from x-y coordinates [3,4] to [0,0] to [0,1] to [1,1], then you walked 7 units of distance.

14 years ago | 1 | 318 solvers

Solved


Counting Money
Add the numbers given in the cell array of strings. The strings represent amounts of money using this notation: $99,999.99. E...

14 years ago

Solved


Add two numbers
Given a and b, return the sum a+b in c.

14 years ago

Solved


Find the longest sequence of 1's in a binary sequence.
Given a string such as s = '011110010000000100010111' find the length of the longest string of consecutive 1's. In this examp...

14 years ago

Solved


Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

14 years ago

Problem


Check if sorted
Check if sorted. Example: Input x = [1 2 0] Output y is 0

14 years ago | 18 | 4491 solvers

Solved


Binary numbers
Given a positive, scalar integer n, create a (2^n)-by-n double-precision matrix containing the binary numbers from 0 through 2^n...

14 years ago

Solved


Quote Doubler
Given a string s1, find all occurrences of the single quote character and replace them with two occurrences of the single quote ...

14 years ago

Solved


Remove any row in which a NaN appears
Given the matrix A, return B in which all the rows that have one or more <http://www.mathworks.com/help/techdoc/ref/nan.html NaN...

14 years ago

Solved


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

14 years ago

Solved


Summing digits
Given n, find the sum of the digits that make up 2^n. Example: Input n = 7 Output b = 11 since 2^7 = 128, and 1 + ...

14 years ago

Solved


Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

14 years ago

Solved


Triangle Numbers
Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

14 years ago

Solved


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

14 years ago

Solved


Check if sorted
Check if sorted. Example: Input x = [1 2 0] Output y is 0

14 years ago

Solved


Count from 0 to N^M in base N.
Return an array of numbers which (effectively) count from 0 to N^M-1 in base N. The result should be returned in a matrix, with ...

14 years ago

Solved


Given an unsigned integer x, find the largest y by rearranging the bits in x
Given an unsigned integer x, find the largest y by rearranging the bits in x. Example: Input x = 10 Output y is 12 ...

14 years ago

Solved


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

14 years ago

Solved


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

14 years ago

Submitted


3-Part Demo Use of Simple Matlab Commands for Bit Reversal Required in Fast Fourier Transform or FFT
3-Part Demo Uses Simple Matlab Commands for Bit Reversing Required in Fast Fourier Transform or FFT

14 years ago | 1 download |

0.0 / 5
Thumbnail

Submitted


Simple Zero Phase Distortion Multiplier-less Gaussian Low-Pass & High-Pass Filter of a Linear Chirp
Simple Zero Phase Distortion Multiplier-less Gaussian Low-Pass & High-Pass Filter of a Linear Chirp.

14 years ago | 1 download |

0.0 / 5
Thumbnail

Submitted


Matlab Monte Carlo Demo on Advanced Statistical Estimation of Variance and Standard Deviation
Matlab Monte Carlo Demo on Advanced Statistical Estimation of Variance and Standard Deviation

14 years ago | 1 download |

4.0 / 5
Thumbnail

Submitted


Simple Draw Helix Spring 3D Rotate Translate Transform Dilate Save JPG
Simple Draw Helix Spring 3D Rotate Translate Transform Dilate Save JPG

14 years ago | 1 download |

0.0 / 5
Thumbnail