Resuelto


There are 10 types of people in the world
Those who know binary, and those who don't. The number 2015 is a palindrome in binary (11111011111 to be exact) Given a year...

alrededor de 3 años hace

Resuelto


Summing digits
Given n, find the sum of the digits that make up 2^n. Example: Input n = 7 Output b = 11 since 2^7 = 128, and 1 + ...

alrededor de 3 años hace

Resuelto


Reverse the input
Given an input (n), produce an output in the reverse order with out using string variables or string function. Example x ...

alrededor de 3 años hace

Resuelto


How to calculate log?
There is a log that have base 5. How to calculate? log5(x)?

alrededor de 3 años hace

Resuelto


Insert zeros into vector
Insert zeros after each elements in the vector. Number of zeros is specified as the input parameter. For example: x = [1 ...

alrededor de 3 años hace

Resuelto


Nth root
Nth root of a number x

alrededor de 3 años hace

Resuelto


Switch matrix to a column vector
for e.g. x = [1 2 3 4] y = 1 3 2 4

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

alrededor de 3 años hace

Resuelto


Create sequnce 1 4 9 16 25.........
Create sequnce 1 4 9 16 25......... upto entered input value using matlab scripting commands. Let y be output and x be input

alrededor de 3 años hace

Resuelto


Sum two matrices
Take two incoming matrices, and sum them

alrededor de 3 años hace

Resuelto


easy problem
Find the last element of the array

alrededor de 3 años hace

Resuelto


square root
Find the square root (y) of an input (x).

alrededor de 3 años hace

Resuelto


the average value of the elements
Calculate the average value of the elements in the array

alrededor de 3 años hace

Resuelto


The sum of the numbers in the vector
eg. [1,2,3]---->SUM=6

alrededor de 3 años hace

Resuelto


Calculate square and cube of number
Calculate square and cube of number x

alrededor de 3 años hace

Resuelto


Write a code that will follow the equation y = x * (x + x) * x.
If x = 5, y = 5 * (5+5) * 5 = 250

alrededor de 3 años hace

Resuelto


Transpose the Matrix
Transpose the given matrix, e.g. x=[a b;c d] transpose of x = [a c;b d]

alrededor de 3 años hace

Resuelto


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

alrededor de 3 años hace

Resuelto


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

alrededor de 3 años hace

Resuelto


sum of first 'n' terms
Given n=10, find the sum of first 'n' terms Example: If n=10, then x=1,2,3,4,5,6,7,8,9,10. The sum of these n=10 terms is 55...

alrededor de 3 años hace

Resuelto


Calculate some equation
Using given inputs x and z, make two outputs that are y1 = (xz)/(x/z)^2 + 14x^2 - 0.8z^2 y2 = x^z - z^x + (x/z)^2 - (z/x...

alrededor de 3 años hace

Resuelto


Spherical Volume
Calculate the volume of a sphere.

alrededor de 3 años hace

Resuelto


Find the Nth Root of a Given Number
Find the Nth root of a given number x. Examples x = 4096 n = 4 y = 8 x = 625 n = 5 y = 3.6239

alrededor de 3 años hace

Resuelto


Area of a Square
Given the length x of the side of a regular square, find the area of the square, A.

alrededor de 3 años hace

Resuelto


Change matrix to vector
Vector is a matrix whose size is 1 x n or n x 1. Change matrix to vector. x = 4 3 5 1 ...

alrededor de 3 años hace

Resuelto


kmph to mps
convert kilometer per hour to meter per second

alrededor de 3 años hace

Resuelto


find the answer

alrededor de 3 años hace

Resuelto


Matlab Basics II - Minimum
Write a function that returns the minimum of each ROW of a matrix x example: x = [1 2 3; 4 5 6]; output [1;4];

alrededor de 3 años hace

Resuelto


Change string to number
Change given string to number. (hint: there is already function) Changing from ['1234'] to [1234] is one of example

alrededor de 3 años hace

Resuelto


area of a sphere

alrededor de 3 años hace

Cargar más