Risolto


Integer to boolean
Write a general function that will create the following conversation; Input is a column vector with integers Output is a b...

quasi 5 anni fa

Risolto


Check if there are white spaces in the input string
If there are white spaces in the input string, output=1 else 0

quasi 5 anni fa

Risolto


Scalar Matrix Manipulation
Assume, input x is a scalar matrix such as, x = 2 0 0 0 2 0 0 0 2 th...

quasi 5 anni fa

Risolto


Bubble sort
Write your own bubble sort function ( <https://en.wikipedia.org/wiki/Bubble_sort>) to sort all elements in x in ascending order....

quasi 5 anni fa

Risolto


Find all repeated numbers
For a given vector, find all numbers that repeated 2 times or more than 2 times. Example: A=[1 2 3 3 4 5 6 6 7] y=[3 ...

quasi 5 anni fa

Risolto


size

quasi 5 anni fa

Risolto


Accessing values in a cell
You are given c, which is a 1xN cell array, and a and b, which are each two 1xM vectors. Your job is to give the bth value in t...

quasi 5 anni fa

Risolto


A shooting competition
In a shooting competition, the target is a square of side L containing a circle of radius R<=L/2. A player scores one point if h...

quasi 5 anni fa

Risolto


Leading-zero padding
Write a function that will add leading-zero padding to all numbers in the supplied vector, as necessary, based on the maximum nu...

quasi 5 anni fa

Risolto


Wrap-around effect
In vector x of length n we define (n+1) position as going back to the first position (so called wrap-around effect). Can you ret...

quasi 5 anni fa

Risolto


Double Factorial
Return double factorial n(n-2)...(5)(3)(1), n>0, odd n!! = n(n-2)...(6)(4)(2), n>0, even 1 ...

quasi 5 anni fa

Risolto


Find the index of nth maximum of a row vector of real numbers
Given a vector of real numbers x, find the index idx of _n_ th maximum value. If nth maximum occurs more than once, return the i...

quasi 5 anni fa

Risolto


Determine if given number is perfect
A number is <http://en.wikipedia.org/wiki/Perfect_number perfect> if it is equal to the sum of its factors, excluding itself. ...

quasi 5 anni fa

Risolto


Check if two matrices are permutations of each other
Your function should return true for the elements of one matrix is the permutation of the other matrix: x = [1 2 3; 4 5 6; ...

quasi 5 anni fa

Risolto


Is there a GPU Device?
Return true if there is a supported GPU device available on the Cody computer.

quasi 5 anni fa

Risolto


SatCom #5: Determine Elliptical Orbit Parameters
*Satellite and Space Engineering - Problem #5* _This is part of a series of problems looking at topics in satellite and space...

quasi 5 anni fa

Risolto


SatCom #4: Satellite Orbit Altitude
*Satellite and Space Engineering - Problem #4* _This is part of a series of problems looking at topics in satellite and space...

quasi 5 anni fa

Risolto


SatCom #2: Gain of a circular 'dish' antenna
*Satellite and Space Engineering - Problem #2* _This is part of a series of problems looking at topics in satellite and space...

quasi 5 anni fa

Risolto


Blood test?
Assuming: the genetic makeup (genotype) of a child is coded as a pair with two components, combining half genotype of one parent...

quasi 5 anni fa

Risolto


Elapsed time is -0.005204 seconds.
Write a function that takes less than zero seconds to execute, as measured using tic and toc. For repeatability, the test case p...

quasi 5 anni fa

Risolto


Average valid values of arrays
Given a 1D array (column or row vector), compute the average of valid values. Valid values are defined via two thresholds: minVa...

quasi 5 anni fa

Risolto


Check if any duplicates in your data
Given an array x, return a number n equal to the largest number of repetitions in your data. For example: If x=[1 2 3 6 8 4 9]...

quasi 5 anni fa

Risolto


No more zeros
Given an array with zeros at the beginning or at the end, you should get the output without these zeros: input = [zeros(5...

quasi 5 anni fa

Risolto


Nth root of a number
Given an input and a number N, find the Nth root of the number(s)

quasi 5 anni fa

Risolto


matrix rows and columns

quasi 5 anni fa

Risolto


Matrix operation

quasi 5 anni fa

Risolto


Sum Sum Sum!
Calculate the sum of the natural numbers from 1 to n

quasi 5 anni fa

Risolto


Diagonal Prod

quasi 5 anni fa

Risolto


find the height

quasi 5 anni fa

Risolto


Determine whether the input is odd, even, or neither.
Make a function that returns ‘odd’ if the input is odd, ‘even’ if the input if even or ‘error’ if the input is neither odd nor ...

quasi 5 anni fa

Carica altro