Community Profile

Contact

Professional Interests: Education

Top 5% contributor

9 downloads

26 days ago

This is not very readable by all, but I will try to parse this for you. 1) The command actually being executed is regexp(str,...

0

Answered 1 year ago

% This solutions currently does it with loops just to get a picture of the problem. A = [2000 1999 1998 1996 1993 1990]...

Answered 5 years ago

Model an ideal mass-spring system shown below where the spring is initially stretched. <<http://blogs.mathworks.com/images/se...

Solve this!

1 year ago

Model an ideal mass-spring-damper system shown below where the spring is initially stretched. <<http://blogs.mathworks.com/im...

Count the number of pulses that are the result of summing each pulse generator block. Pulse Generator blocks produce a recurr...

Produce a full wave rectifier waveform for the given sine wave source. For a sine wave input, the output of the full wave rec...

Produce a signal that outputs the given sine wave source when it is greater than zero and outputs zero when it is less than zero...

Produce a sine wave with amplitude 3: <<http://blogs.mathworks.com/images/seth/cody/sine-eqn.png>>

Produce the following signal: <<http://blogs.mathworks.com/images/seth/cody/add-block-eqn.png>> In this case, the slope of...

Produce the following signal: <<http://blogs.mathworks.com/images/seth/cody/cosine-eqn.png>>

Produce the following signal: <<http://blogs.mathworks.com/images/seth/cody/add-offset-eqn.png>> You should see a downward...

Connect the blocks in the model to produce the following signal: <<http://blogs.mathworks.com/images/seth/cody/connect-blocks...

<http://en.wikipedia.org/wiki/Benford%27s_law Benford's Law> states that the distribution of leading digits is not random. This...

3 years ago

Given the string s1, return the string s2 with the target characters removed. For example, given s1 = 'the main event' your ...

At one time or another, we all had to memorize boring times tables. 5 times 5 is 25. 5 times 6 is 30. 12 times 12 is way more th...

Regardless of input, output the string 'yes'.

Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Example...

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

Return the first and last character of a string, concatenated together. If there is only one character in the string, the functi...

Given a matrix M and two index vectors a and b, return a row vector x where x(i) = M(a(i),b(i)).

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

Given input A, return all but the first and last elements, arranged as a column vector. (I.e., all dimensions after the first s...

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

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

Given n (always odd), return output a that has concentric rings of the numbers 1 through (n+1)/2 around the center point. Exampl...

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

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

4 years ago

Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

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

Load more

Choose your country to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .

You can also select a location from the following list:

See all countries