Gelöst


basic matrix operations: rotate and find sum of diagonal elements of the resultant matrix
For given input matrix a, rotate it by 90 degrees and find the sum of the diagonals. Example: Input: a = 1 ...

fast 6 Jahre vor

Gelöst


Sum of unique multiples of 3 and 5
If we list all the natural numbers up to 15 that are multiples of 3 or 5, we get 3, 5, 6, 9, 10, 12 and 15. The sum of these mul...

fast 6 Jahre vor

Gelöst


how many of the entries are positive?
Given x= sin(linspace(0,10*pi,100)), how many of the entries are positive?

fast 6 Jahre vor

Gelöst


Pass the Threshold!!
Write a Matlab function that will take as input a matrix of arbitrary dimensions and a scalar threshold value, and return a vec...

fast 6 Jahre vor

Gelöst


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

fast 6 Jahre vor

Gelöst


Find the maxmum value of N*N Matrix
Input x=[1 2 3; 4 5 6; 7 8 9] output: y=9

fast 6 Jahre vor

Gelöst


vectors counting by 5
Create a vector with numbers from x_min to x_max in increments of 5.

fast 6 Jahre vor

Gelöst


Where is the number that you want to find?
For a given matrix A, find where the input number x appears. Do this task by returning the vector which contains the row and th...

fast 6 Jahre vor

Gelöst


Leap Year
According to Gregorian Calender(which is in use now, in many countries),decide whether a given year is a leap year or not. Give...

fast 6 Jahre vor

Gelöst


Keep Only the Upper characters in a string
Keep Only the Upper characters in a string s = 'Sreeram Mohan'; output = SM;

fast 6 Jahre vor

Gelöst


Reverse Concatenation
Suggest methods to form a Matrix after deleting one of the input's elements. Input should be element's position and output shou...

fast 6 Jahre vor

Gelöst


Delete blanks at the end of string
you got to delete all blank spaces which appears at the end of string

fast 6 Jahre vor

Gelöst


Count me in
Count the number of occurrences of the second input in the first input Ex. x1 = 12344455511; x2 =2; output = 1 ...

fast 6 Jahre vor

Gelöst


MPS to MPH
Given the speed in miles per second, find the speed in miles per hour.

fast 6 Jahre vor

Gelöst


Shift elements of vector left
Shift elements of vector to the left. For ex. : Input_vec = [1 2 3 4 5] Output_vec = [2 3 4 5 1]

fast 6 Jahre vor

Gelöst


true or false
if the matrix has a zero, return true. else, return false

fast 6 Jahre vor

Gelöst


Find the minimal value in N*N Matrix
Suppose that we have N by N matrix, we try to find the minimal value in that matrix. examples: Input A=[1 2 3 5 6;52 58 56 45...

fast 6 Jahre vor

Gelöst


row removal
Consider a matrix and remove the first row of the matrix.

fast 6 Jahre vor

Gelöst


Vector with a repeated entry
Create a row vector of length n, filled with 4's. For example, if n = 3, output = [4 4 4] Hint: Search for the function...

fast 6 Jahre vor

Gelöst


ASCII code of a leter.
Given the letter, the output will show the corresponding ASCII code.

fast 6 Jahre vor

Gelöst


Compare two strings.
Compare two strings, whether they are equal or not.

fast 6 Jahre vor

Gelöst


Back to Basics - New Data Type in R2016b - convert a char to a string
Convert an char array into a string.

fast 6 Jahre vor

Gelöst


row removal
Remove the nth row from input matrix M and return the resulting matrix in output N.

fast 6 Jahre vor

Gelöst


Area of square
Find the area of a square whose diagonal length is given as x.

fast 6 Jahre vor

Gelöst


Vector Multiplication
Vector Multiplication of three matrix as shown in test cases.

fast 6 Jahre vor

Gelöst


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

fast 6 Jahre vor

Gelöst


Corresponding letter to ASCII code.
Given the letter, the output will show the corresponding ASCII code.

fast 6 Jahre vor

Gelöst


Where is she?
Given the numbers 12, 3, 6, 9 Tell where the girl is located. That is: Look to your 3 o'clock = look right Example ...

fast 6 Jahre vor

Gelöst


Calculate the number of elements in a matrix.
Calculate the number of elements in a matrix.

fast 6 Jahre vor

Gelöst


raise 1/3
Raise a number to 1/3 power.

fast 6 Jahre vor

Mehr laden