Risolto


Get chain of consecutive characters
Write a function that will output a chain of consecutive characters, given 2 letters as input. It has to work backwards too. Exa...

circa 8 anni fa

Risolto


adding huge numbers
Write function called huge_add that adds together two positive integers of any length specified as char vectors using decimal n...

circa 8 anni fa

Risolto


Find my secret function I
If give my function a x value it will give me a y value, so find the secret of it: Examples: input x=[2 5 6 8 9] ---- >>> o...

circa 8 anni fa

Risolto


Relation between functions "dec2bin" & "dec2binvec"
Here it's an easy problem we try to find the relation between the two functions "dec2bin" & "dec2binvec", so here you must write...

circa 8 anni fa

Risolto


Deleting Specific part.
if input is x= { /*[0..10]*/ 0, 11, 21, 31, 41, 55, 50, 10, 810, 9.10, /*[10...25]*/ 100, 110, 120, 130, 140, 255 ...

circa 8 anni fa

Risolto


Find the outlier in a set of samples
Given an array x of numbers. Assumed that this array has one outlier. Find the position p and the value v of the outlier in this...

circa 8 anni fa

Risolto


Simple spirometer - find your lung capacity from the number and size of soap bubbles in one breath
Assumed that each bubble has practically the same diameter d. Given total number n of bubbles. Find volume v of breath.

circa 8 anni fa

Risolto


Find the mean of a 2-D matrix after excluding elements of specified sub-matrix
You need to find the mean of a 2-D matrix after excluding elements which form an inner sub-matrix. e.g. If the input 2-D matrix ...

circa 8 anni fa

Risolto


Determine if input is a valid AHP evaluation matrix
Input is a matrix. Output is a true or false statement (1 or 0). Return true if input is a valid Analytic Hierarchy Process eval...

circa 8 anni fa

Risolto


Basics: counting digits of a number irrespective of the sign
publish the number of digits in any input integer example: -23---->2

circa 8 anni fa

Risolto


resistor ladder
* You have a bunch (an odd number N) of identical resistors (each R ohms), a good battery (V volts), and a high impedance voltme...

circa 8 anni fa

Risolto


Goldbach's marginal conjecture - Write integer as sum of three primes
Goldbach's strong conjecture states that every even integer greater than 2 can be expressed as the sum of two primes. For exampl...

circa 8 anni fa

Risolto


convert the number to binary format & count digits
Convert the given number to the corresponding binary format and count the number of digits in that binary number

circa 8 anni fa

Risolto


Get a new matrix by mapping each element of an arbitrary-sized input matrix using lookup table
A is a matrix of any size and dimension. Each element of matrix A belongs to the set S of natural numbers up to N. B is a vector...

circa 8 anni fa

Risolto


Construct an index vector from two input vectors in vectorized fashion
Create an index vector defined by two input vectors, one defining the beginnings of one or more index ranges, and the other defi...

circa 8 anni fa

Risolto


Pancake sorting - minimum flips.
Sort a stack of pancakes by flipping them using spatula. * There are _N_ pancakes with diameters _1:N_. * Spatula can be ins...

circa 8 anni fa

Risolto


Pancake sorting
Sort a stack of pancakes by flipping them using spatula. * There are _N_ pancakes with diameters _1:N_. * Spatula can be ins...

circa 8 anni fa

Risolto


Sort the prime numbers in each row of a 3x3 matrix
Considering a 3x3 matrix A, sort the prime numbers of each row in ascending order. For exemple: input A=[5 8 2 4; ...

circa 8 anni fa

Risolto


Find the right x in a 1. order Polynomal (y = m*x+c)
Given two points in a Cartesian coordinate system, find the x-value, where polynomial of 1. order (y = m*x+c) is equal to a giv...

circa 8 anni fa

Risolto


Expand a term
Given a term, as a string, expand it. e. g. f = '2(x + y)';

circa 8 anni fa

Risolto


Send vector into a struct object
Construct a struct object that contains n fields named a1, a2, ..., an, and has values from a given input vector of length n.

circa 8 anni fa

Risolto


struct2values()
Convert a struct object into a column vector. You can assume that the struct elements are scalars Example: a = struct();...

circa 8 anni fa

Risolto


Create all combinations of vectors
This function exists in the Neural Network Toolbox but is not available in Cody. Can you write such a function? See <http://...

circa 8 anni fa

Risolto


convert 2D array of ones and zeros to checkerboard array of [1,2] where the original array was ones and zero elsewhere
Given a 2D array of ones and zeros, generate an equivalent sized checkerboard array of ones and twos. The checkerboard pattern s...

circa 8 anni fa

Risolto


Repeat string n times - 3
function myOutput = rep_str_3(string1, string2, num1, num2, n) function desiredOutput = rep_str_3('string1', 'STRING2', 0...

circa 8 anni fa

Risolto


Return ! if array element starts with a certain letter. Otherwise return ?
Input x=['try' 'once' 'more']; s='t' Output ans='!' Input x=['try' 'once' 'more']; s='O' Output ...

circa 8 anni fa

Risolto


Print the date for a given number using Indian calendar reference
Print date for a given number in date reference is INDIAN calendar, not Christ's Birth The Vikram Samvat is said to have been...

circa 8 anni fa

Risolto


Return the sequence element II
Given positive integers x and n, return a positive integer, y, which is the nth term in the <https://en.wikipedia.org/wiki/Juggl...

circa 8 anni fa

Risolto


Duration of a trip in minutes
Input is a string which includes the duration of a trip. Convert the duration to minutes. For example if the duration of a t...

circa 8 anni fa

Risolto


jumping astronauts
The surface gravity on the moon is approximately 2 m/s^2. Thats why an funny astronauts feels as light as a feather and jumps fr...

circa 8 anni fa

Carica altro