Solved

Target sorting

Sort the given list of numbers |a| according to how far away each element is from the target value |t|. The result should return...

plus d'un an ago

Solved

Maximum running product for a string of numbers

Given a string s representing a list of numbers, find the five consecutive numbers that multiply to form the largest number. Spe...

plus d'un an ago

Solved

Find the two-word state names

Given a list of states, remove all the states that have two-word names. If s1 = 'Alabama Montana North Carolina Vermont N...

plus d'un an ago

Solved

Subset Sum

Given a vector v of integers and an integer n, return the the indices of v (as a row vector in ascending order) that sum to n. I...

plus d'un an ago

Solved

Determine if input is odd

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

plus d'un an ago

Solved

Read a column of numbers and interpolate missing data

Given an input cell array of strings s, pick out the second column and turn it into a row vector of data. Missing data will be i...

plus d'un an ago

Solved

Trimming Spaces

Given a string, remove all leading and trailing spaces (where space is defined as ASCII 32). Input a = ' singular value deco...

plus d'un an ago

Solved

Interpolator

You have a two vectors, a and b. They are monotonic and the same length. Given a value, va, where va is between a(1) and a(end...

plus d'un an 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 ...

plus d'un an ago

Submitted

parse_ngaw2

A m-file function for parse original seismograms from NGA West2 database

plus d'un an ago | 1 download |

Answered

How to generate Gaussian white noise with certain variance in Matlab?

y1 = wgn(1000, 1, 0); % a 1000-element white noise with power 0dBW, that is 1W var(y1) ans: ans = 0.9979

How to generate Gaussian white noise with certain variance in Matlab?

y1 = wgn(1000, 1, 0); % a 1000-element white noise with power 0dBW, that is 1W var(y1) ans: ans = 0.9979

plus de 2 ans ago | 0