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.

mehr als 14 Jahre vor | 1 | 319 Lösungsvorschläge

Gelöst


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

mehr als 14 Jahre vor

Gelöst


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

mehr als 14 Jahre vor

Gelöst


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

mehr als 14 Jahre vor

Gelöst


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

mehr als 14 Jahre vor

Problem


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

mehr als 14 Jahre vor | 18 | 4502 Lösungsvorschläge

Gelöst


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

mehr als 14 Jahre vor

Gelöst


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

mehr als 14 Jahre vor

Gelöst


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

mehr als 14 Jahre vor

Gelöst


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

mehr als 14 Jahre vor

Gelöst


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

mehr als 14 Jahre vor

Gelöst


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

mehr als 14 Jahre vor

Gelöst


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

mehr als 14 Jahre vor

Gelöst


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

mehr als 14 Jahre vor

Gelöst


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

mehr als 14 Jahre vor

Gelöst


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

mehr als 14 Jahre vor

Gelöst


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

mehr als 14 Jahre vor

Gelöst


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

mehr als 14 Jahre vor

Gelöst


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

mehr als 14 Jahre vor

Gesendet


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

mehr als 14 Jahre vor | 1 Download |

0.0 / 5
Thumbnail

Gesendet


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.

mehr als 14 Jahre vor | 1 Download |

0.0 / 5
Thumbnail

Gesendet


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

mehr als 14 Jahre vor | 1 Download |

4.0 / 5
Thumbnail

Gesendet


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

mehr als 14 Jahre vor | 1 Download |

0.0 / 5
Thumbnail