A résolu


Create tangent function out of sine function only
Please don't use cosine and tangent functions

environ 3 ans il y a

A résolu


Find Logic 17

environ 3 ans il y a

A résolu


Find Logic 20

environ 3 ans il y a

A résolu


Odd times even numbers in a matrix
First count the number of odd numbers in x, then the number of even. Return their product. example: x = [1 2] One odd ...

environ 3 ans il y a

A résolu


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

environ 3 ans il y a

A résolu


Count the numbers
In a array x, count the number of times the number n appears in x. for example: x = [1 2 3 4 3 2 1 2] and n = 2 the answer sh...

environ 3 ans il y a

A résolu


Add the even numbers
Add only the even numbers of x example: x = [1 2 3 4 5] the positive numbers are: 2 4, so their sum is 6

environ 3 ans il y a

A résolu


Add the positive numbers
Add only the positive numbers of x example: x = [-2 -1 0 1 2 3] the positive numbers are: 1 2 3, so their sum is 6

environ 3 ans il y a

A résolu


Find Logic 11

environ 3 ans il y a

A résolu


Find Logic 6

environ 3 ans il y a

A résolu


Find Logic 12

environ 3 ans il y a

A résolu


Find Logic 4

environ 3 ans il y a

A résolu


Find Logic 5

environ 3 ans il y a

A résolu


Find Logic 9

environ 3 ans il y a

A résolu


Find Logic 10

environ 3 ans il y a

A résolu


Find Logic 2

environ 3 ans il y a

A résolu


Find Logic 3

environ 3 ans il y a

A résolu


Find Logic 1

environ 3 ans il y a

A résolu


Set x value to each odd index of vector y.
Set x value to each odd index of vector y.

environ 3 ans il y a

A résolu


Select primes from the matrix.
Select primes from the matrix.

environ 3 ans il y a

A résolu


Display positive elements of matrix.
Display positive elements of matrix.

environ 3 ans il y a

A résolu


Weave two vectors into one
Weave the two given vectors into one as shown below. Example: If a = [1 1 1] b = [0 0 0] then y = [1 0 1 0 ...

environ 3 ans il y a

A résolu


calculate linear convolution two vectors
for e.g in: a = [1 2 3] b = [4 5 6] out: y = [4 13 28 27 18]

environ 3 ans il y a

A résolu


Calculate the derivative of a polynomial
Example: in = [ 1 1 1 ] out = [ 2 1 ]

environ 3 ans il y a

A résolu


find the roots of a quadratic equation
for e.g x = [ 2 -1 -3] y = [1.5 -1]

environ 3 ans il y a

A résolu


design a magic matrix without using the command magic.
Like magic(4) = 16 3 2 13;5 10 11 8;9 6 7 12;4 15 14 1

environ 3 ans il y a

A résolu


Find the minimum element of the matrix
Example: If x = [3 9; 5 2] then y = 2

environ 3 ans il y a

A résolu


Square the input
Given a scalar or vector x, return the square of each element. Example x = [7 2] answer = [49 4]

environ 3 ans il y a

A résolu


kmph to mph converter
Convert the speed in miles/hour to km/hour.

environ 3 ans il y a

A résolu


Sum positive elements of matrix.
Calculate sum of positive elements of the matrix.

environ 3 ans il y a

Charger plus