Gelöst


Sum of the Matrix Elements
Add up all the elements in a NxM matrix where N signifies the number of the rows and M signifies the number of the columns. E...

etwa 4 Jahre vor

Gelöst


Number of 1s in the Binary Representation of a Number
*Description* Return the number of 1s in the (unsigned integer) binary representation of a number. This function should be ab...

etwa 4 Jahre vor

Gelöst


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

etwa 4 Jahre vor

Gelöst


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

etwa 4 Jahre vor

Gelöst


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

etwa 4 Jahre vor

Gelöst


Select primes from the matrix.
Select primes from the matrix.

etwa 4 Jahre vor

Gelöst


Scrabble Scores - 2
An <https://www.mathworks.com/matlabcentral/cody/problems/56-scrabble-scores introductory Cody problem> asks the user to score a...

etwa 4 Jahre vor

Gelöst


Matrix Pattern 5

etwa 4 Jahre vor

Gelöst


Matrix Pattern 10

etwa 4 Jahre vor

Gelöst


Matrix Pattern 9

etwa 4 Jahre vor

Gelöst


Matrix Pattern 8

etwa 4 Jahre vor

Gelöst


Matrix Pattern 7

etwa 4 Jahre vor

Gelöst


Matrix Pattern 6

etwa 4 Jahre vor

Gelöst


Matrix Pattern 4

etwa 4 Jahre vor

Gelöst


Matrix Pattern 3

etwa 4 Jahre vor

Gelöst


Matrix Pattern 2

etwa 4 Jahre vor

Gelöst


Matrix Pattern 1

etwa 4 Jahre vor

Gelöst


reverse string
input='rama' output='amar'

etwa 4 Jahre vor

Gelöst


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

etwa 4 Jahre vor

Gelöst


ascii value
let input='a' output=97

etwa 4 Jahre vor

Gelöst


Multiplication
Multiply two numbers in a different manner. The numbers are given to you as vectors x and y. Example x = [ 1 2 0 1 ] ...

etwa 4 Jahre vor

Gelöst


Place numbers
Given two input first input is a matrix which consist of the index numbers of the second input vector. You place the second inpu...

etwa 4 Jahre vor

Gelöst


Stuff the Board
You have a stack of tiles to put onto an array-like playing board. Each tile has a number (always an integer), and the board var...

etwa 4 Jahre vor

Gelöst


Duplicate each element of a vector.
for an n-dimensional vector x, the function should return another vector 2n-dimension which each element is repeated twice. Ex...

etwa 4 Jahre vor

Gelöst


Beginner's Problem - Squaring
Try out this test problem first. Given the variable x as your input, square it by two and put the result in y. Examples: ...

etwa 4 Jahre vor

Gelöst


Find out total non zero element of matrix
Find out Non zero element of matrix A=magic(5) 17 24 1 8 15 23 5 7 14 16 4 6...

etwa 4 Jahre vor

Gelöst


Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
The given function returns the index of the maximum value in a given matrix. such as X=[4,3,4,5,9,12,0,5] Ans= 6 if maxim...

etwa 4 Jahre vor

Gelöst


Find the sum of the elements in the "second" diagonal
Find the sum of the elements in the diagonal that starts at the top-right corner and ends at the bottom-left corner.

etwa 4 Jahre vor

Gelöst


Element-wise vector product (★)
Given two vectors x and y, compute their element-wise product z. Thus, if x = [1 3 5] and y = [0.5 -1 2], then z = [1*0.5...

etwa 4 Jahre vor

Gelöst


Create times-tables (★★★)
(copy of prob 33) At one time or another, we all had to memorize boring times tables. 5 times 5 is 25. 5 times 6 is 30. 12 ti...

etwa 4 Jahre vor

Mehr laden