Risolto


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

oltre 6 anni fa

Risolto


modulus of a number
find the modulus of a given number

oltre 6 anni fa

Risolto


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

oltre 6 anni fa

Risolto


Degrees to Radian
Convert degrees to radians

oltre 6 anni fa

Risolto


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

oltre 6 anni fa

Risolto


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

oltre 6 anni fa

Risolto


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

oltre 6 anni fa

Risolto


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

oltre 6 anni fa

Risolto


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

oltre 6 anni fa

Risolto


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

oltre 6 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]

oltre 6 anni fa

Risolto


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.

oltre 6 anni fa

Risolto


ascii value
let input='a' output=97

oltre 6 anni fa

Risolto


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

oltre 6 anni fa

Risolto


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

oltre 6 anni fa

Risolto


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

oltre 6 anni fa

Risolto


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

oltre 6 anni fa

Risolto


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

oltre 6 anni fa

Risolto


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

oltre 6 anni fa

Risolto


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)

oltre 6 anni fa

Risolto


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

oltre 6 anni fa

Risolto


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

oltre 6 anni fa

Risolto


factorial of a number x
Factorial of a number x

oltre 6 anni fa

Risolto


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

oltre 6 anni fa

Risolto


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

oltre 6 anni fa

Risolto


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

oltre 6 anni fa

Risolto


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

oltre 6 anni fa

Risolto


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

oltre 6 anni fa

Risolto


Second smallest number
What is the second smallest number in x? example: x = [1 2 3 4 5 6 7 8 9] y = 2

oltre 6 anni fa

Risolto


Calculate mean value of any pair in a vector.
Given a vector A, calculate the mean of 2 number in the vector one by one. example: input: A=[1, 5, 6, 8, 9, 15] output:...

oltre 6 anni fa

Carica altro