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

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

12 months ago

Solved

Column Removal

Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; and ...

1 year ago

Solved

Make a checkerboard matrix

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

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

1 year ago

Solved

The Goldbach Conjecture, Part 2

The <http://en.wikipedia.org/wiki/Goldbach's_conjecture Goldbach conjecture> asserts that every even integer greater than 2 can ...

1 year ago

Answered

How do I plot one timeseries vs another from the command line?

Nice thing about timeseries is the built-in utility methods: [xTs,yTs] = synchronize(xTs,yTs,'Union'); plot(xTs.Data,yTs.Dat...

How do I plot one timeseries vs another from the command line?

Nice thing about timeseries is the built-in utility methods: [xTs,yTs] = synchronize(xTs,yTs,'Union'); plot(xTs.Data,yTs.Dat...

1 year ago | 0

Solved

Matlab Basics - Absolute Value

Write a script that returns the absolute value of the elements in x e.g. x = [-1 -2 -3 -4] --> y = [1 2 3 4]

1 year ago

Solved

Find the next square number

Given one or more integers n, find the next integer that is a square, for each of them. Example 1: n = 1; out = 4; ...

1 year ago