Resuelto


Simple return on investment
Assume you have some money and want to invest all your money to stock market. You randomly select a stock and invest all your mo...

más de 3 años hace

Resuelto


divide by 5

más de 3 años hace

Resuelto


Leap Year
According to Gregorian Calender(which is in use now, in many countries),decide whether a given year is a leap year or not. Give...

más de 3 años hace

Resuelto


Find Logic 27

más de 3 años hace

Resuelto


sign function

más de 3 años hace

Resuelto


Corresponding ASCII code.
Given the number, the output will show the corresponding ASCII code.

más de 3 años hace

Resuelto


UICBioE240 problem 1.7
Find the other two angles of a right triangle given the two of the sides. So if A = [1 1] B = [45 45]

más de 3 años hace

Resuelto


Initialize a Natural Number matrix.
Given length of matrix initialize a matrix consisting of natural numbers from 1 to n: n = 10; x = [ 1 2 3 4 5 6 7 8 9 10]; ...

más de 3 años hace

Resuelto


Real

más de 3 años hace

Resuelto


Find the last digit
FInd the last digit of a given number. Given number is the input and output should be the last digit of that number.

más de 3 años hace

Resuelto


Vertically stack two vectors
Stack two vectors on top of each-other so that... if A = [1 5 3] and B = [8 6 4] then C = [1 5 3 ; 8 6 4]

más de 3 años hace

Resuelto


Stress-Strain Properties - 2
The resilience of a material is its ability to resist permanent (or plastic) deformation. The resilience coincides with the elas...

más de 3 años hace

Resuelto


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

más de 3 años hace

Resuelto


Display negative numbers
Given array,x, display all the negative numbers and display output as y. Example x=[1 -2 3 -4] , output is y=[-2 -4].

más de 3 años hace

Resuelto


Convert from integer to binary
if true % decimalToBinaryVector(x) end

más de 3 años hace

Resuelto


cube of number
find cube of number

más de 3 años hace

Resuelto


edge detection
write a function that gives the indexes of rising or falling edge x is a vector (assume it contains always at least one eleme...

más de 3 años hace

Resuelto


Find x in provided equation!
x^2-2*x+1=0 This polynomial can be expressed by using each term's coefficients, such as [1 -2 1]. Using the polynomial ...

más de 3 años hace

Resuelto


Vector with a repeated entry
Create a row vector of length n, filled with 4's. For example, if n = 3, output = [4 4 4]

más de 3 años hace

Resuelto


Square
square root of x

más de 3 años hace

Resuelto


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

más de 3 años hace

Resuelto


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

más de 3 años hace

Resuelto


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

más de 3 años hace

Resuelto


Calculate the answer to life the universe and everything
<https://en.wikipedia.org/wiki/42_(number)>

más de 3 años hace

Resuelto


Power supply: 230V to 115V
The problem is simple: we have a wall outlet which supplies 230V and an apparatus that requires 115V. Software is always chea...

más de 3 años hace

Resuelto


Polynomial division
Divide a polynomial u by polynomial v and return the quotients only. Example: u = x^4+3*x^3+5*x+3 v = x^2+1 Answer: ...

más de 3 años hace

Resuelto


Generate the sum of Squares of the given number
|P(n) = 1^2 + 2^2 + ... + n^2| |P(1) = 1| |P(2) = 1 + 4 = 5;| |P(3) = 5 + 9 = 14;| |P(4) = 14 + 16 = 30;|

más de 3 años hace

Resuelto


Find minimum and maximum elements of an array
For a given array find minimum and maximum elements of an array and store minimum value in first index of output and maximum in ...

más de 3 años hace

Resuelto


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

más de 3 años hace

Resuelto


Remove and Sort
Given a randomized array n, sort it and remove all odd integers. n=5 y = [2 4]

más de 3 años hace

Cargar más