A résolu


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)

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

A résolu


Converts numbers into characters
Converts numbers into characters

plus de 5 ans il y a

A résolu


Power Numbers
Find the n-th power of m.

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

A résolu


Step number
Step number

plus de 5 ans il y a

A résolu


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.

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

A résolu


Square
square root of x

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

A résolu


Divide pi
Divide pi by x!

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

A résolu


easy problem
Find the last element of the array

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

A résolu


Multiply pi
Multiply pi with x!

plus de 5 ans il y a

Charger plus