已解决


Draw a 'N'!
Given n as input, generate a n-by-n matrix 'N' using 0 and 1 . Example: n=5 ans= [1 0 0 0 1 1 1 0 0 1 1 0 ...

3 years 前

已解决


Draw 'C'.
Given x as input, generate a x-by-x matrix 'C' using 0 and 1. example: x=4 ans= [0 1 1 1 1 0 0 0 ...

3 years 前

已解决


Draw 'H'
Draw a x-by-x matrix 'H' using 1 and 0. (x is odd and bigger than 2) Example: x=5 ans= [1 0 0 0 1 1 0 0 0 1 ...

3 years 前

已解决


Draw 'J'
Given n as input, generate a n-by-n matrix 'J' using 0 and 1 . Example: n=5 ans= [0 0 0 0 1 0 0 0 0 1 0 0 ...

3 years 前

已解决


Draw a 'X'!
Given n as input Draw a 'X' in a n-by-n matrix. example: n=3 y=[1 0 1 0 1 0 1 0 1] n=4 y=[1 0 0...

3 years 前

已解决


Draw 'E'
Draw a x-by-x matrix 'E' using 1 and 0. (x is odd and bigger than 4) Example: x=5 ans= [1 1 1 1 1 1 0 0 0 0 ...

3 years 前

已解决


Print true if
all elements are larger than 5 a=[1 3 5 8 6]; b=[6 6 6 6 6]; function(a) should be false, and function(b) will be tru...

3 years 前

已解决


Determine whether the input is divisible by 3 as well as 5
If the input is divisible by 3 as well as 5 then the output should be 'true' otherwise 'false'

3 years 前

已解决


Simple String Concatenation
This is a simple problem involving taking two incoming strings, and outputting the concatenated string with a space separating t...

3 years 前

已解决


More Simple String Concatenation
Take the first string input, reverse the order of the string from the end to beginning (i.e. apple becomes elppa), add a space a...

3 years 前

已解决


String Delimination and Outputting
In this problem, take an incoming string and deliminate the string based on spaces. Output the first string in between the space...

3 years 前

已解决


Automatic String Editing
In this function, you will take an incoming string, and output the same string with each character one letter later in the alpha...

3 years 前

已解决


Vector Element Multiplication
Take two incoming vectors, and output the element wise multiplication of the vectors.

3 years 前

已解决


Find the mean of two vectors
Take two vectors, and output the mean of them (bonus if you don't use the in-built mean function)

3 years 前

已解决


Find the sum of the largest two elements in a vector
With this one, you have to find the two largest elements in a vector and output the sum of those numbers.

3 years 前

已解决


Matrix Max Finder
Output the maximum value in a matrix

3 years 前

已解决


Replace 0 indices in array with 1's
Take a incoming vector, and replace 0's with ones

3 years 前

已解决


Matrix element wise multiplication
Take two incoming vectors, and multiply them element wise

3 years 前

已解决


Vector indexing: lower than mean
Find all values in a vector lower than the mean of the vector

3 years 前

已解决


Basic commands - Greatest common divisor
Please write a function, which, will put as output greatest common divisor. Example: A = [-5 17; 10 0];...

3 years 前

已解决


Basic commands - Least common multiple
Make a function which will return least common multiple of "a" and "b" Example: a=8; b=6; y=24;

3 years 前

已解决


cross in array
Make a cross from "1" in odd size array. Other value from array should be equal to "0"; As input you get length of side of arra...

3 years 前

已解决


Will there be a new leader?
Simply answer the title.

3 years 前

已解决


Matlab Basics - y as a function of x
Write a function to calculate y as a function of x, such that y = 6x^2 + 5x - 2

3 years 前

已解决


Eye Squared
For a positive integer |n| create the identity matrix with |n| elements. In case it is not possible to produce an identity ma...

3 years 前

已解决


Basic commands - rounding
make a function which will round to integer, which is nearer to zero. Example x=[-2.5 2]; y=[-2 2];

3 years 前

已解决


Matrix Ax=B problem
Take a incoming A and B vector, and solve for x

3 years 前

已解决


Remove the first, third and fifth rows of a matrix
Given a matrix x with at least five rows, return a matrix y that includes all rows of x except for th 1st, the 3rd and 5th. E...

3 years 前

已解决


Sum two matrices
Take two incoming matrices, and sum them

3 years 前

已解决


Replace Negative(-) by 0 and positive by 1
In a given Matrix Replace all element having *Negative sign with 0* and *Positive elements with 1* .

3 years 前

加载更多