已解决


Getting the indices from a matrice
Getting the indices from a matrice. Inspired by Problem 645. Getting the indices from a vector by the great Doug Hull. Given a...

7 years 前

已解决


Change matrix to vector2
From x = 4 3 5 1 5 1 To y = 4 3 5 1 ...

7 years 前

已解决


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

7 years 前

已解决


modulus of a number
find the modulus of a given number

7 years 前

已解决


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

7 years 前

已解决


Degrees to Radian
Convert degrees to radians

7 years 前

已解决


Is It a Palindrome?
Given a string or array, determine if it is a palindrome.

7 years 前

已解决


Draw 'I'
Given n as input, draw a n-by-n matrix 'I' using 0 and 1. example: n=3 ans= [0 1 0 0 1 0 0 1 0] n=...

7 years 前

已解决


Join Strings with Multiple Different Delimiters
The idea is to form the string S by interleaving the elements of a cell array of strings DELIMITER and another cell array of st...

7 years 前

已解决


How many digits are there?
Input(s) - any string Output(n) - number of digits within string s

7 years 前

已解决


Get 1-4-3-4-4
Get the value of the indices in the title and assign it to an array

7 years 前

已解决


Make visible max values
Make visible maximum values of rows input = [1 2 3 4 5; 6 9 8 2 1; 2 1 4 5 8; 1 9 7 9 2]; ...

7 years 前

已解决


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]

7 years 前

已解决


Sum of self power series
The series, 1^1,2^2,3^3,4^4,.... Find the sum of such series when x terms are given.

7 years 前

已解决


ascii value
let input='a' output=97

7 years 前

已解决


MATLAB Basic: rounding III
Do rounding towards minus infinity. Example: -8.8, answer -9 +8.1 answer 8 +8.50 answer 8

7 years 前

已解决


Return median of a matrix
Compute median of a matrix of any dimension. Exclude the NaNs if any.

7 years 前

已解决


Draw 'B'
Draw a x-by-x matrix 'B' using 1 and 0. (x is odd and bigger than 4) Example: x=5 ans= [1 1 1 1 0 1 0 0 0 1 ...

7 years 前

已解决


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

7 years 前

已解决


Sum the rows
Sum the rows of the given matrix. Example x = [ 1 2 3 4 ] y = [ 3 7 ]

7 years 前

已解决


Palindrome Check
Check whether the entire matrix is palindrome or not. Example matrix = [7 8 7] matrix_reverse = [7 8 7] So the mat...

7 years 前

已解决


Basics: Divide integers to get integer outputs in all cases
Divide integers a and b in such a way that output y is always an integer (in ceil manner)

7 years 前

已解决


calculate RMS voltage
given peak to peak voltage, calculate rms voltage

7 years 前

已解决


Construct a string from letters and counts
Given two input arrays like this: [5,3,1] ['a','b','c'] Output a string that contains each letter the specified num...

7 years 前

已解决


factorial of a number x
Factorial of a number x

7 years 前

已解决


Finding perimeter of a rectangle
A rectangle has a length of x centimeters and a width of w centimeters. Find the perimeter.

7 years 前

已解决


Create an anti-identity matrix
Create an anti-identity matrix of given dimension. Examples n = 2 A = [0 1; 1 0] n = 3 A = [0 0 1; 0 1 0; 1 0 0...

7 years 前

已解决


Calculate area of sector
A=function(r,seta) r is radius of sector, seta is angle of sector, and A is its area. Area of sector A is defined as 0.5*(r^2...

7 years 前

已解决


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

7 years 前

已解决


Test if a number is numeric or not
Test if a number is numeric or not

7 years 前

加载更多