Risolto


Number of bytes required to store a sparse matrix
The input will be a sparse matrix : x = sparse(100,1000,0.01); >>whos x shows that 8024 bytes ares required . The aim...

10 mesi fa

Risolto


Do operation as per given string
Do operation as per given string Example: '3*5' then answer must be 15; '3+5' then answer must be 8; '35' then answer ...

10 mesi fa

Risolto


Composite Trapezoidal Rule for Numeric Integration
Use the trapezoidal rule to numerically integrate a function, _f(x)_, passed as the first argument, between upper and lower limi...

10 mesi fa

Risolto


Convert decimal to hex as shown in test cases
Convert decimal to hex as shown in test cases.

10 mesi fa

Risolto


Maximum of ND-array
Find the maximum element of a N dimensional array. Example: A=[1 2 4 ; -20 4 10]; The maximum is 10.

10 mesi fa

Risolto


Summation of Non Zeros Numbers in String Variable
Find the Summation of Non Zeros Numbers in String Variable The input : x = '100205' The Output : y = 8

10 mesi fa

Risolto


Getting values from a vector
This exercise is for finding the values that meet your criteria. a = [-5 28 7 83 73]; b = 23 ; c = (a > b) Then : c = ...

10 mesi fa

Risolto


Sequencing Odd Even numbers
Given an input value n, create a vector which contains all odd numbers & even numbers centered around mean of vector. If the me...

10 mesi fa

Risolto


Calculate the Area of the Ring
You have Ring which consist of inner and outer Circles with Radius r and R which are not given but you'll be given Hprizontal ...

10 mesi fa

Risolto


Determine if the square root is an integer.
Write code that returns true if perfect square and returns false if square root is not an integer.

10 mesi fa

Risolto


Out-of-Place Elements Count
Determine the number of elements in a list of integers that are not in their original order after sorting the list in ascending ...

10 mesi fa

Risolto


Swap between first and last
The idea is to swap between first and last row Ex = [1 2 3 4 5; 1 2 3 4 5; 1 2 3 4 5; 1 2 3 4 5; ...

11 mesi fa

Risolto


Swap between first and last column
The idea is to swap between first and last column Ex = [1 2 3 4 5; 1 2 3 4 5; 1 2 3 4 5; 1 2 3 4 5; 1 2 3 ...

11 mesi fa

Risolto


Diagonal Pattern
For a positive integer |n|, return an |nXn| matrix |mat| such that the value of each element in row |i| and column |j| is given ...

11 mesi fa

Risolto


Whole Number Un-Concatenator
Write a function that accepts an integer and an index digit and returns a vector containing two integers which are the leading a...

oltre un anno fa

Risolto


Easy Sequences 99: One-line Code Challenge - Real Digitizer
Given a real number r, write the function rDigitizer that breaks r into constituent digits and symbols. For example: >> ...

oltre un anno fa

Risolto


Whole Number Concatenator
Write a function that concatenates whole numbers. For example: numcat(111,222) should return 111222 numcat(1,2,3,4,5) s...

oltre un anno fa

Risolto


How many unique Pythagorean triples?
For a given integer |n|, return all <https://en.wikipedia.org/wiki/Pythagorean_triple Pythagorean triples> that inlude numbers s...

oltre un anno fa

Risolto


Pseudo Square Root (Inspired by Project Euler 266)
Shamelessly copied from the Project Euler page for Problem 266: ------------- The divisors of 12 are: 1,2,3,4,6 and 12. T...

oltre un anno fa

Risolto


Find Pseudo-Cyclic Number
A cyclic number is an integer in which cyclic permutations of the digits are successive multiples of the number https://en.wikip...

oltre un anno fa

Risolto


Lah Numbers
Create a square lower diagonal matrix containing the first n Lah number coefficients. In mathematics, the Lah numbers are coeffi...

oltre un anno fa

Risolto


Counting the Grand Primes
A grand prime pair is a pair of primes, p1 and p2=p1+1000, such that both numbers are prime. Like a twin prime pair, where the d...

oltre un anno fa

Risolto


Prime Letters = Removing
Given a string, remove all the letters which in ASCII Code are prime numbers. For Example: s1 = 'Determine which array e...

oltre un anno fa

Risolto


Legend of Zelda - Rupee Count (Item Purchase)
Building off of <https://www.mathworks.com/matlabcentral/cody/problems/3025-zelda-rupee-count Problem 3025>, suppose that an arr...

oltre un anno fa

Risolto


Legend of Zelda - Rupee Count (Compact)
Building off of <https://www.mathworks.com/matlabcentral/cody/problems/3025-zelda-rupee-count Problem 3025>, suppose that Link's...

oltre un anno fa

Risolto


Legend of Zelda - Rupee Count
Rupees are the main currency in The Legend of Zelda games. The value of each rupee is determined by its color. Unfortunately, th...

oltre un anno fa

Risolto


Calculator spelling - Letters to Numbers
Using the numbers on a calculator, and rotating the display 180 degrees, many words can be spelled. In particular, the following...

oltre un anno fa

Risolto


Calculator spelling - Numbers to Letters
Using the numbers on a calculator, and rotating the display 180 degrees, many words can be spelled. In particular, the following...

oltre un anno fa

Risolto


Adding Cells with numbers defined as strings
Given a cell, with strings representing numbers, add each value. For example: a = {'9','33'}; the output should be: ...

oltre un anno fa

Risolto


Beauty of Parentheses
Given a string consisting of closed parentheses, form a string array in the following way so that the orders of these parenthese...

oltre un anno fa

Carica altro