Gelöst


Move if I am Optimus Prime
If the number is a prime, roll out!

mehr als 9 Jahre vor

Gelöst


Check if a rotated array was originally sorted
Suppose a sorted array is rotated at some pivot unknown to you. For example, |[0 1 2 4 5 6 7]| might become |[5 6 7 0 1 2 4]|. ...

mehr als 9 Jahre vor

Gelöst


How many figures currently exist?
Return the number of figures that exist at any given time.

mehr als 9 Jahre vor

Gelöst


asdf
asdf

mehr als 9 Jahre vor

Gelöst


Write a function to calculate step size delta if bits per sample and input range is given for quantization.
numBit = bits per sample; range = input max value - min value; delta = step size; l = number of levels;

mehr als 9 Jahre vor

Gelöst


without zeros
given an array with seros at the begining or at the end, you should get the output without these zeros: input = [zeros(5,...

mehr als 9 Jahre vor

Gelöst


vectors counting by 5
Create a vector with numbers from x_min to x_max in increments of 5.

mehr als 9 Jahre vor

Gelöst


row removal
Remove the nth row from input matrix M and return the resulting matrix in output N.

mehr als 9 Jahre vor

Gelöst


Determinant of a 3x3 Matrix
Return the determinant of a 3x3 matrix. The built-in Matlab function det is not allowed.

mehr als 9 Jahre vor

Gelöst


Calculate inverse matrix in m by n matrix
x=(1:10)' y=roundn(2*x+7*rand(size(x)),-1) a*x=y Estimate a using inverse matrix calculation. This is principle of li...

mehr als 9 Jahre vor

Gelöst


Criss_Cross_000 : Unique elements in a Square array
Criss Cross matrix puzzle - Easy: Square matrix, Unique elements Arrange the "words" into a solid square such that all words ...

mehr als 9 Jahre vor

Gelöst


create a square matrix
create a [n*n] matrix. example: mat(4)= [ 1 4 9 16 4 4 9 16 9 9 ...

mehr als 9 Jahre vor

Gelöst


Form a square matrix from four square sub-matrices
Create a square matrix, y, from 4 square sub-matrices that will be constructed (x1, x2, x3, x4): y = [x1 x2; x3 x4]; ...

mehr als 9 Jahre vor

Gelöst


sum of ASCII
Given a string x, return the sum of all ASCII numbers of all characters. for example, if x='lala' ('l'-> 108, 'a'->97) then y...

mehr als 9 Jahre vor

Gelöst


All odd - all even
All odd numbers in x are added, while all even numers are subtracted from this. example: x = [1 2 3 4 5]; y = +(1+3+5)-...

mehr als 9 Jahre vor

Gelöst


Find cosine between two given vectors u and v.
Find cosine between two given vectors u and v. Example u = [5 2 0 5 3 0]; v = [3 2 5 1 ...

mehr als 9 Jahre vor

Gelöst


Find area.
Suppose <<https://www.mathworks.com/help/examples/matlab/ImproperIntegralExample_eq17103907294130514984.png>> b=Inf. Fi...

mehr als 9 Jahre vor

Gelöst


How to Concatenate two strings?
How to Concatenate two strings?

mehr als 9 Jahre vor

Gelöst


determine the sum of the squares
if x = 4, the solution will be: y = 1^2+2^2+3^2+4^2=1+4+9+16 = 30.

mehr als 9 Jahre vor

Gelöst


Remove multiples of N
in the vector x remove all multiples of N. x = [1 2 3 4 5 6]; N = 2; Then y = [1 3 5];

mehr als 9 Jahre vor

Gelöst


determine if
determine if the elements of a matrix is a nan and return true

mehr als 9 Jahre vor

Gelöst


Create vector as shown in test cases
Create vector as shown in test cases

mehr als 9 Jahre vor

Gelöst


Calculate the values of a polynomial.
Calculate the values of a polynomial.Input parameter p - vector of polynomial coefficients, x - matrix of the argument values. ...

mehr als 9 Jahre vor

Gelöst


Calculate solution of given polynomial
For example, y=function([3 -2 -4]) In here, input vector indicate 3*x^2-2*x-4, y is solution of former equation. y=[1.5...

mehr als 9 Jahre vor

Gelöst


Recursion at variable input
input of any length a =2 b =2 c =3 output = (a^b)^c = 64

mehr als 9 Jahre vor

Gelöst


Calculate roots of polynomial given as vector array.
Calculate roots of polynomial given as vector array. Example x=[1 2 0 5 0 3] result=[-2.7267 ; ...

mehr als 9 Jahre vor

Gelöst


Logarithm with base other than 'e'
The standard log() function in Matlab returns the natural logarithm (base equal to Euler's constant). Compute the logarithm for ...

mehr als 9 Jahre vor

Gelöst


Find scalar product of two polynomials a and b, given as vector array.
Find scalar product of two polynomials given as vector array. Example a=[1 -1 2]; b=[2 4 1]; result=0

mehr als 9 Jahre vor

Gelöst


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

mehr als 9 Jahre vor

Gelöst


Check if a matrix is a palindrome in all directions
Check if a matrix is a palindrome both vertically and horizontally. You function will return *true* for |[1,2,1]| or |[2,7,2;...

mehr als 9 Jahre vor

Mehr laden