Gelöst


Transpose of matrix
Transpose of matrix as per test cases

etwa ein Jahr vor

Gelöst


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

etwa ein Jahr vor

Gelöst


Sum positive elements of matrix.
Calculate sum of positive elements of the matrix.

etwa ein Jahr vor

Gelöst


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.

etwa ein Jahr vor

Gelöst


find the mean of all elements in a matrix
given a matrix, just find the mean of all elements in the matrix

etwa ein Jahr vor

Gelöst


Find remainder when x is divided by 3
Find remainder when x is divided by 3

etwa ein Jahr vor

Gelöst


first element of matrix
find the first elements of a column matrix

etwa ein Jahr vor

Gelöst


Matlab Basics II - Log and natural log
Write a function that calculates the difference between the log and natural log of a vector, to two decimal places example: ...

etwa ein Jahr vor

Gelöst


ZigZag matrix with reflected format
ZigZag MATRIX with REFLECTED format. We have only input x. We have to create a matrix in the following pattern. input n=5...

etwa ein Jahr vor

Gelöst


check whether a number is a pentatope number
<https://oeis.org/A000332>

etwa ein Jahr vor

Gelöst


Summing Digits within Text
Given a string with text and digits, add all the numbers together. Examples: Input str = '4 and 20 blackbirds baked in a...

etwa ein Jahr vor

Gelöst


Mandelbrot Numbers
The <http://en.wikipedia.org/wiki/Mandelbrot_set Mandelbrot Set> is built around a simple iterative equation. z(1) = c z...

etwa ein Jahr vor

Gelöst


Read a column of numbers and interpolate missing data
Given an input cell array of strings s, pick out the second column and turn it into a row vector of data. Missing data will be i...

etwa ein Jahr vor

Gelöst


construct matrix with identical rows
Input a row vector such as x=1:10. Now we need to construct a matrix with L rows,of which every row vector is a copy of x. E...

etwa ein Jahr vor

Gelöst


Cody Matlab Version
What is the current Cody Matlab Release? *Output:* string *Examples:* '(R2012a)' or 'R2012a' Hint: We have mo...

etwa ein Jahr vor

Gelöst


Special matrix
Make a square matrix with this shape. For n=4 M = 1 1 0 0 1 0 1 0 0 1 0 ...

etwa ein Jahr vor

Gelöst


Linear system of equations
Solve the system of equations in three variables.

etwa ein Jahr vor

Gelöst


Nth root
Nth root of a number x

etwa ein Jahr vor

Gelöst


Sum of cubes
Write a program to determine sum of cubes of first n odd numbers.

etwa ein Jahr vor

Gelöst


Create a constant offset.
Add a constant offset to an array. Example a = [1 3 5 9] offset = 2 y = [3 5 7 11]

etwa ein Jahr vor

Gelöst


Roots of a quadratic equation.
Calculate the roots of a quadratic equation, given coefficients a, b, and c, for the equation a*x^2 + b*x + c = 0.

etwa ein Jahr vor

Gelöst


kmph to mph converter
Convert the speed in miles/hour to km/hour.

etwa ein Jahr vor

Gelöst


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

etwa ein Jahr vor

Gelöst


Energy of an object
Calculate the total mechanical energy of an object. Total Energy= Potential energy + Kinetic energy P.E.=m*g*h K.E.=1/2...

etwa ein Jahr vor

Gelöst


Convert a vector into numbers
Suppose a vector x = [ 1 2 4 7] is given. You have to convert this vector into string number y = '1247'. Examples x = [ 1...

etwa ein Jahr vor

Gelöst


Are you in XY plane?
Take a point P as an input position Vector (x,y,z). If you are in XY plane, return 1 as an output otherwise return 0. Example...

etwa ein Jahr vor

Gelöst


Multiply Column
Given two input, one matrix and one scalar number For example A is a matrix given A = [ 1 2 2 5 2 5 2 3 4 6...

etwa ein Jahr vor

Gelöst


Reshape a Vector
Write a function that accept three inputs. The first one is a row vector S. The second and third arguments are m and n which de...

etwa ein Jahr vor

Gelöst


imaginary results
Return the value of the imaginary number i to the power of input argument n.

etwa ein Jahr vor

Gelöst


Golden ratio
Calculate the golden ratio. Hint: phi^2 = phi + 1.

etwa ein Jahr vor

Mehr laden