Solved

Throw common elements of two vector arrays in sorted manner

Throw common elements as output in sorted manner (acending order) of two given input vector arrays

plus de 5 ans ago

Solved

How many solutions has this problem?

Guess, predict or calculate :-) (You will be scored by the accuracy). Update: <http://www.mathworks.co.uk/matlabcent...

plus de 5 ans ago

Solved

Rotate a matrix for 180 degree

Rotate a matrix for 180 degree for eg: x=[1 2 3 4] y=[4 3 2 1]

plus de 5 ans ago

Solved

Divisible by 3

Pursuant to the <http://www.mathworks.com/matlabcentral/cody/problems/42404-divisible-by-2 first problem> in this series, this o...

plus de 5 ans ago

Solved

Prime number removal

remove all prime numbers from the input e.g. input = 1 2 3 4 5 6 7 8 9 10 11 12 ...

plus de 5 ans ago

Solved

find the Area of a rectangle

length is x width is y what is the area of the rectangle?

plus de 5 ans ago

Solved

Is it prime?

Given a number, check whether it is prime or not. If prime output is true, otherwise false.

plus de 5 ans ago

Solved

Find minimum and maximum elements of an array

For a given array find minimum and maximum elements of an array and store minimum value in first index of output and maximum in ...

plus de 5 ans ago

Solved

Permutations of input vector

Find and output all permutations of given vector

plus de 5 ans ago

Solved

Matlab Basics II - Operations and Matrix Dimensions

Write a function that takes two inputs, a & b, and outputs the sum and product of the two matrices. The matrices have OPPOSITE d...

plus de 5 ans ago

Solved

What's for Lunch?

Given b choices of beverages, e choices of entrees, s choices of sides (take two different sides total) and d choices of dessert...

plus de 5 ans ago

Solved

Without french accent please !

Suppress french accent For example 'Déjà présent' -> 'Deja present'

plus de 5 ans ago

Solved

arrangement of symbols

There are n different symbols in which m symbols are identical (m<n). How many different arrangement can we make with these symb...

plus de 5 ans ago

Solved

Accumulate Cells

Given a combining function, a cell array, and an initial value, accumulate the result. For example, accumcell(@plus,{1,...

plus de 5 ans ago

Solved

Molecule Atomic Wt (CHONS) Molecules

Given a molecular equation string determine its atomic weight. Limited atoms of C H O N and S where wts are rounded to [12 1 ...

plus de 5 ans ago

Solved

Implement a bubble sort technique and output the number of swaps required

A bubble sort technique compares adjacent items and swaps them if they are in the wrong order. This is done recursively until al...

plus de 5 ans ago

Solved

Golomb's self-describing sequence (based on Euler 341)

The Golomb's self-describing sequence {G(n)} is the only nondecreasing sequence of natural numbers such that n appears exactly G...

plus de 5 ans ago

Solved

Identify the heavier bag

There are N=2^n bags of rice looking alike, N-1 of which have equal weight and one is slightly heavier. The weighing balance is ...

plus de 5 ans ago

Solved

Tony's trick for duplicating an mx1 vector n times

Without using repmat, or for loop, or concatenation, create a function to duplicate a vector, v, a specified number of times, n....

plus de 5 ans ago

Solved

Find the biggest digit in a matrix

Write a function to find the biggest digit in a matrix; input -> a matrix output -> a digit For example; [12; 47;...

plus de 5 ans ago

Solved

Create the following sequence : 0 1 1 4 9 25 64 169 ...

The sequence 0, 1, 1, 4, 9, 25, 64, 169, ... represents the square of the sequence of Fibonacci numbers. Let n repres...

plus de 5 ans ago

Solved

Given a number find two variables

If the input is *x*, find *a* and *b* from the following equation: *x = a*2^b*. Hint: *b* is an integer while *x* and *a* ar...

plus de 5 ans ago

Solved

Back to basics - array operations

Without performing actual arithmetic operations on arrays, return feasibility of operation as true or false. True if given opera...

plus de 5 ans ago

Solved

Find difference of two set as per example

Find difference of two set as per example Say x=[1:5] and y=[2:6] then, set_diff(x,y) should give output[1] and set_diff(y...

plus de 5 ans ago

Solved

Convert Kilometers to Miles

Convert kilometers to miles. Consider 1 km = 0.62 mile. Note: Don't use the '*' operator.

plus de 5 ans ago

Solved

Distance a ball travels after throwing vertically

Calculate the total distance *'d'* (in meters) a ball would travel after *'s'* seconds and starting velocity of *'v'* (in m/s). ...

plus de 5 ans ago

Solved

Check transmitted data follow even parity (True or false)

Check transmitted data follow even parity (True or false) <http://en.wikipedia.org/wiki/Parity_bit/ Parity Bit> Say, '010...

plus de 5 ans ago

Solved

Shorten pathname

Given a pathname string, return a condensed version by replacing intermediate folders with '..'. *Example* If fullpat...

plus de 5 ans ago

Solved

Which way to go?

Given an m*n grid, How many ways are there to go from upper left corner to the lower right one? You can only move right...

plus de 5 ans ago