Solved


Sum of series
a(n) = n^2 - (n-1)^2 find the summation of the series upto n i.e. a(1)+a(2)+...+a(n)

5 years ago

Solved


An Ohm's Law Calculator
*BACKGROUND / MOTIVATION:* Many important observations in math and science can be described by short, but powerful, equations...

5 years ago

Solved


Check if integer is a prime number
Check if integer i is a prime number. Returns logical true '1' if it is.

5 years ago

Solved


Given a vector x, return vector y with all negative elements from the vector x.
Given a vector x, return vector y with all negative elements from the vector x if x has negative elements. Otherwise return 0. ...

5 years ago

Solved


Finding sum of even numbers in a vector.
Find the sum of all the even numbers present in the input vector x. Examples: Input x = [1 2 3 4] Output y is 6 Input...

5 years ago

Solved


Construcción de matrices a partir de vectores
Construye la matriz A=[1 2 2 1; 2 2 3 3;2 3 3 4; 1 3 4 4] utilizando los siguientes vectores. c=[1 2 3 4]; d=[2 3 4]; b...

5 years ago

Solved


Sum! Sum! Sum!
Calculate the sum of the sequence up to nth term >> a,aa,aaa,aaaa,... 2,22,222,2222,... [for a=2]

5 years ago

Solved


Converts numbers into characters
Converts numbers into characters

5 years ago

Solved


Power Numbers
Find the n-th power of m.

5 years ago

Solved


MinMax
* x=[2 4 3 1 6 4 6] * output , y=[1 6 2 4 3] here,y(1) is the minimum of x, y(2) is the maximum of x, y(3) is the 2nd mini...

5 years ago

Solved


Check if number is a square number
Test if integer i is a square number. Return logical true if it is.

5 years ago

Solved


Create a matrix that counts up diagonally
Given a single input _N_, create a _N_ x _N_ matrix that counts from 1 : _N_ ², (along up-right diagonals, starting with 1 in th...

5 years ago

Solved


Step number
Step number

5 years ago

Solved


Four digit number ABCD reversal
write a MATLAB function to find the four-digit number ABCD when multiplied by 4 returns DCBA. The function takes an input x=4.

5 years ago

Solved


Create a vector of the first n odd numbers (★)
If n = 10, your program should return a vector y, where y = [1 3 5 7 9 11 13 15 17 19].

5 years ago

Solved


Square
square root of x

5 years ago

Solved


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

5 years ago

Solved


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

5 years ago

Solved


Divide pi
Divide pi by x!

5 years ago

Solved


Quadratic equation
given three inputs (a, b, c) for the equation a*x^2+b*x+c=0; return 1 if the roots are complex (non zero imaginary), and 0 if th...

5 years ago

Solved


easy problem
Find the last element of the array

5 years ago

Solved


Perimeter of a square!
Calculate the circumference of the square whose side is n

5 years ago

Solved


How tall are you?
measures your height forexample= 175cm 180cm 169cm

5 years ago

Solved


Times 10
Try out this test problem first. Given the variable x as your input, multiply it by ten and put the result in y. Examples:...

5 years ago

Solved


Calculate the area of a circle
Given a circle of diameter x calculate its area

5 years ago

Solved


Chào các bạn.
Cho 3 số. Tính tổng của chúng

5 years ago

Solved


Construyendo matrices parte 2
Construye la siguiente matriz a partir de otros tres vectores/matrices. [ 1 8 15 3 3 3 3 2 9 16 3 3...

5 years ago

Solved


Ugly numbers - 03
For this case, a number is defined ugly if it has prime factors consisting of only elements of x. Find the nth ugly number. ...

5 years ago

Solved


Find the y=(1:x)
Look at the question

5 years ago

Solved


Multiply pi
Multiply pi with x!

5 years ago

Load more