Risolto


Rotate Matrix @180 degree
Rotate Matrix @180 degree Example A=[8 1 6; 3 5 7; 4 9 2], then answer would be [2 9 4;...

2 mesi fa

Risolto


Inner product of two vectors
Find the inner product of two vectors.

2 mesi fa

Risolto


Arrange Vector in descending order
If x=[0,3,4,2,1] then y=[4,3,2,1,0]

2 mesi fa

Risolto


Vector creation
Create a vector using square brackets going from 1 to the given value x in steps on 1. Hint: use increment.

2 mesi fa

Risolto


Doubling elements in a vector
Given the vector A, return B in which all numbers in A are doubling. So for: A = [ 1 5 8 ] then B = [ 1 1 5 ...

2 mesi fa

Risolto


Create a vector
Create a vector from 0 to n by intervals of 2.

2 mesi fa

Risolto


Whether the input is vector?
Given the input x, return 1 if x is vector or else 0.

2 mesi fa

Risolto


Find max
Find the maximum value of a given vector or matrix.

2 mesi fa

Risolto


Get the length of a given vector
Given a vector x, the output y should equal the length of x.

2 mesi fa

Risolto


Draw a '0' in a one matrix!

2 mesi fa

Risolto


calculate the length of matrix
input 1 array, calculate the length

2 mesi fa

Risolto


Find the max element of the array
Find the max element of the array

2 mesi fa

Risolto


Square root
Given x (a matrix), give back another matrix, where all the elements are the square roots of x's elements.

2 mesi fa

Risolto


Calculate the average value of the elements in the array
Calculate the average value of the elements in the array

2 mesi fa

Risolto


to the 2 all elements
to the 2 all elements

2 mesi fa

Risolto


the average value of the elements
Calculate the average value of the elements in the array

2 mesi fa

Risolto


Double all elements in the array
Duplicate all elements in the array

2 mesi fa

Risolto


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

2 mesi fa

Risolto


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

2 mesi fa

Risolto


Converts numbers into characters
Converts numbers into characters

2 mesi fa

Risolto


Chess probability
The difference in the ratings between two players serves as a predictor of the outcome of a match (the <http://en.wikipedia.org/...

2 mesi fa

Risolto


Special matrix
Make a square matrix with this shape. For n=4 M = 1 1 0 0 1 0 1 0 0 1 0 ...

2 mesi fa

Risolto


Mirror Image matrix across anti-diagonal
Given an input number x, create a mirror image matrix 'Y' across the anti-diagonal. For example, if x=3, Y = [1 2 3; ...

2 mesi fa

Risolto


Flip the vector from right to left
Flip the vector from right to left. Examples x=[1:5], then y=[5 4 3 2 1] x=[1 4 6], then y=[6 4 1]; Request not to use d...

2 mesi fa

Risolto


Symmetric matrix
You must create a n-by-n symmetric matrix such that A(row,col) = row/col for col >= row. Example if n =3 : output is : A = ...

3 mesi fa

Risolto


Pascal's Matrix
Given an integer n &ge; 0, generate the ( _n_+1) &times; ( _n_+1) lower triangular <http://en.wikipedia.org/wiki/Pascal_matrix P...

3 mesi fa

Risolto


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

3 mesi fa

Risolto


Create an arrow matrix
An arrow matrix is a square matrix that contains ones on the diagonal, the last column, and last row. ...

3 mesi fa

Risolto


Calculating Student Grades
The matrix grades contains raw grades for 7 students who took your course. Each row represents a different student. The first 7 ...

3 mesi fa

Risolto


Determine if x is a combination of m and n
Given positive integers x, m, and n, determine if x can be written as x = am + bn for any (non-negative) integers a and b. Your ...

3 mesi fa

Carica altro