Risolto


Find NaNs in the matrix
Return 1s wherever there is a NaN in the input matrix

quasi 8 anni fa

Risolto


Adding Numbers
Add the input numbers to the original.

quasi 8 anni fa

Risolto


Product of all elements in an array
Compute the product of all elements in an array.

quasi 8 anni fa

Risolto


The answer to life the universe and everything
Write a function that gives the answer to life the universe and everything to every input except the input is 42. In this case t...

quasi 8 anni fa

Risolto


Prime numbers between a , b.
Find all prime number between a & b (including a and b). example: a=100 b=120 y= [101 103 107 109 113]

quasi 8 anni fa

Risolto


'Absolute value'
Create a function called own_abs, which is the absolute number entered as the input return value.

quasi 8 anni fa

Risolto


Percentage of zeros in a matrix of only 1s and 0s
Write a function called _zero_stat_ that takes a matrix as an input that only has 0 and 1 elements. The function needs to comput...

quasi 8 anni fa

Risolto


find number of times of occurrence of the most frequent number in a row vector
In a given row vector, find the number of times a mode of a row vector has occurred example: in [2 5 5 5 5 3], output is 4 ...

quasi 8 anni fa

Risolto


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

quasi 8 anni fa

Risolto


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

quasi 8 anni fa

Risolto


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

quasi 8 anni fa

Risolto


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

quasi 8 anni fa

Risolto


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

quasi 8 anni fa

Risolto


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

quasi 8 anni fa

Risolto


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

quasi 8 anni fa

Risolto


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

quasi 8 anni fa

Risolto


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

quasi 8 anni fa

Risolto


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

quasi 8 anni fa

Risolto


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

quasi 8 anni fa

Risolto


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

quasi 8 anni fa

Risolto


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

quasi 8 anni fa

Risolto


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

quasi 8 anni fa

Risolto


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]

quasi 8 anni fa

Risolto


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

quasi 8 anni fa

Risolto


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

quasi 8 anni fa

Risolto


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

quasi 8 anni fa

Risolto


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

quasi 8 anni fa

Risolto


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

quasi 8 anni fa

Risolto


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

quasi 8 anni fa

Risolto


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

quasi 8 anni fa

Carica altro