Solved

06 - Matrix Equations 1

Define the vectors _aVec_ and _bVec_ and the matrix _aMat_: <<http://samle.dk/STTBDP/Assignment1_2a.png>> and <<http:/...

1 year ago

Solved

Replace Nonzero Numbers with 1

Given the matrix x, return the matrix y with non zero elements replaced with 1. Example: Input x = [ 1 2 0 0 0 ...

1 year ago

Solved

Specific Element Count

Given a vector _v_ and a element _e_, return the number of occurrences of _e_ in _v_. Note: NaNs are equal and there may be n...

1 year ago

Solved

Return elements unique to either input

Given two numeric inputs a and b, return a row vector that contains the numbers found in only a or only b, but not both. For ex...

1 year ago

Solved

First non-zero element in each column

For a given matrix, calculate the index of the first non-zero element in each column. Assuming a column with all elements zero ...

1 year ago

Solved

Return unique values without sorting

If the input vector A is [42 1 1], the output value B must be the unique values [42 1] The *values of B are in the s...

1 year ago

Solved

We love vectorized solutions. Problem 1 : remove the row average.

Given a 2-d matrix, remove the row average from each row. Your solution MUST be vectorized. The solution will be tested for ac...

1 year ago

Solved

Cumulative probability of finding an unlikely combination

This is a supplemental problem to the <http://www.mathworks.com/matlabcentral/cody/problems/621-cryptomath-addition CryptoMath> ...

1 year ago

Solved

Calculate the square of a number (Super Easy)

The goal is to calculate the square (y) of a number (x). Good way to start MatLab for beginners.

1 year ago

Solved

Solve equation numerically

y'=y In order to solve equation using computer, numerical analysis are needed. 1st order Euler's method is one of the metho...

1 year ago

Solved

Nth root of a number

Given an input and a number N, find the Nth root of the number(s)

1 year ago

Solved

Reverse the Matrix

Given a Matrix A, reverse it. Such that, last element of A becomes 1st and vice versa. for example: Input = [1 2 3;4 5 ...

1 year ago

Solved

Determinants

Given a square matrix(A), find the determinant(d). For example: A = [1,3;4,5] d = 1*5-4*3 = -7

1 year ago

Solved

Calculate correlation.

There are two data. y1=[0 1 2 3 4]' y2=[2 3 4 5 6]' We can see positive relationship between y1 and y2. The relations...

1 year ago

Solved

Rankine to Celsius Converter

Given input R, degrees Rankine, convert into degrees Celsius.

1 year ago

Solved

determine amount cookies left

started with 3 cookies and you never ate any how many are left

1 year ago

Solved

Speed of car travelling x meters in y seconds

What is the speed of a car if the car travelled x meters in y seconds? Supply the answer in m/s.

1 year ago

Solved

Get all corner elements from a matrix where dimension of matrix is always equal to or greater than 2.

if a given matrix a = [1 2 3;4 5 6]; so answer is going to be [1 3;4 6]

1 year ago

Solved

Was ist denn los?

Nur für deutschsprechende Leute! Wie geht's? ...also gut, bis bald!

1 year ago

Solved

CARDS PROBLEM

Read my mind and tell me the card number that I have now in my hands.

1 year ago