Resuelto


Log of a number
Write a script that will give the log of x as output.

más de 3 años hace

Resuelto


ASCII Code
Using matlab, give the symbol that is associated with ASCii code 90.

más de 3 años hace

Resuelto


Square root of a number
Write a code that will output the square root of x.

más de 3 años hace

Resuelto


Square a Number
Given an input x, return y, which is equal to the square of x.

más de 3 años hace

Resuelto


Create a Standard Size Vector
Given an input x, create a row vector y from 1 to x with 5 elements.

más de 3 años hace

Resuelto


Create a Matrix of Zeros
Given an input x, create a square matrix y of zeros with x rows and x columns.

más de 3 años hace

Resuelto


Sum of series IV
What is the sum of the following sequence: Σ(-1)^(k+1) (2k-1)^2 for k=1...n for different n?

más de 3 años hace

Resuelto


Sum of series VII
What is the sum of the following sequence: Σ(km^k)/(k+m)! for k=1...n for different n and m?

más de 3 años hace

Resuelto


surrounded matrix
With a given matrix A (size m x n) create a matrix B (size m+2 x n+2) so that the matrix A is surrounded by ones: A = [1 2 ...

más de 3 años hace

Resuelto


Indexed Probability Table
This question was inspired by a Stack Overflow question forwarded to me by Matt Simoneau. Given a vector x, make an indexed pro...

más de 3 años hace

Resuelto


Volume of this donut
Given hole diameter a, and outermost diameter b, determine the volume y of the resulting donut.

más de 3 años hace

Resuelto


resistor ladder
* You have a bunch (an odd number N) of identical resistors (each R ohms), a good battery (V volts), and a high impedance voltme...

más de 3 años hace

Resuelto


surface of a spherical planet
you just discovered its circumference, that is the input.

más de 3 años hace

Resuelto


execute the declaration in strings and return value
execute the commands in strings and return value input='a=23' output=23

más de 3 años hace

Resuelto


Alternately upper-lower case
Modify the string to alternate between upper and lower case. For example, s='achyuta' output='AcHyUtA'

más de 3 años hace

Resuelto


interesting center of magic matrix
output the centre of magic matrix of n input=7; output=25

más de 3 años hace

Resuelto


union without repitition
Let a = [9 9 9 9 9 9 8 8 8 8 7 7 7 6 6 6 5 5 4 2 1] b = [1 1 1 3 3 3 3 3 4 4 4 4 4 10 10 10] Output should be [9 8...

más de 3 años hace

Resuelto


most frequent character
Obtain the most frequent character. For example, s='balaram'; output='a'; If there is a tie between letters, return t...

más de 3 años hace

Resuelto


Find the index of n in magic(n)
If input n=5, then magic(n) is 17 24 1 8 15 23 5 7 14 16 4 6 13 20 22...

más de 3 años hace

Resuelto


index of n^2 in magic(n)
input=5 magic matrix 17 24 1 8 15 23 5 7 14 16 4 6 13 20 22 10 ...

más de 3 años hace

Resuelto


ascii value
let input='a' output=97

más de 3 años hace

Resuelto


Sum of odd numbers in a matrix
Find the sum of all the odd numbers in a matrix. Example x = [2 3 5 7 1 4 11] y = 27

más de 3 años hace

Resuelto


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

más de 3 años hace

Resuelto


Multiply two polynomials p and q given in in vector representation.
Multiply two polynomials p and q given in vector representation. Example p=[-2 0 1 -1 3 2] q=[1 0 -1 2 ...

más de 3 años hace

Resuelto


Rotate matrix by -90 degrees
Rotate a Matrix by -90 degrees Example: X = 1 2 3 4 5 6 7 8 9 output = 7 4 ...

más de 3 años hace

Resuelto


Area of a triangle given its sides

más de 3 años hace

Resuelto


Area of a circle
Given the radius x, y would be the area of a circle. Pi = 3.1416

más de 3 años hace

Resuelto


NaN

más de 3 años hace

Resuelto


F.R.I.E.N.D.S

más de 3 años hace

Resuelto


Sort accordingly

más de 3 años hace

Cargar más