Solved

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

mer än 5 år ago

Solved

"Low : High - Low : High - Turn around " -- Create a subindices vector

Let two vectors *lo* and *hi* be given. The job is to create a index vector like so idx = [lo(1):hi(1) lo(2):hi(2) ...]...

mer än 5 år ago

Solved

Joining Ranges

You are given a n-by-2 matrix. Each row represents a numeric range, e.g. x = [0 5; 10 3; 20 15; 16 19; 25 25] contains...

mer än 5 år ago

Solved

Create logical matrix with a specific row and column sums

Given two numbers *|n|* and *|s|*, build an |n-by-n| logical matrix (of only zeros and ones), such that both the row sums and th...

mer än 5 år ago

Solved

Is X a Fibonacci Matrix?

In honor of Cleve's new blog and post: <http://blogs.mathworks.com/cleve/2012/06/03/fibonacci-matrices/> Is X a Fibonacci ...

mer än 5 år ago

Solved

Integer sequence - 2 : Kolakoski sequence

Get the n-th term of <https://oeis.org/A000002 Kolakoski Sequence>.

mer än 5 år ago

Solved

Throwing errors / exceptions

Throwing and handling errors (or exceptions) is an important part of practical programming. Here your task is to provide an...

mer än 5 år ago

Solved

Sum all integers from 1 to 2^x

Given a number x, your function must return the summation of all integers from 1 to 2^x.

mer än 5 år ago

Solved

Code breaker, Part II: Operation Orthos

You have been tasked with decoding a several batches of coded messages that have been intercepted. Based on previous intell...

mer än 5 år ago

Solved

Replace 0 indices in array with 1's

Take a incoming vector, and replace 0's with ones

mer än 5 år ago

Solved

Vector indexing: lower than mean

Find all values in a vector lower than the mean of the vector

mer än 5 år ago

Solved

Matrix multiplication

Multiply two incoming matrices via matrix multiplication

mer än 5 år ago

Solved

Pairwise Euclidean Distance

Given two matrices A,B of dimensions NxK and NxL respectively, calculate the pairwise euclidean distance of all vectors (columns...

mer än 5 år ago

Solved

Increasing sub-sequence (Level 2)

This is the next step up from <http://www.mathworks.com/matlabcentral/cody/problems/42837-increasing-sub-sequence-level-1 Proble...

mer än 5 år ago

Solved

Code breaker, Part I: Operation Phoenix

You have been tasked with decoding a set of coded messages that have been intercepted. Based on previous intelligence that ...

mer än 5 år ago

Solved

Seemingly impossible problem

This is a _seemingly_ 'impossible' problem, because variously your function, "impossibleFn", must return an output of either 1 o...

mer än 5 år ago

Solved

Find the maximum two numbers of every column of a matrix

Find the maximum two numbers of every column of a matrix. Example: If we input a matrix A = [ 1 2 4 6 0 3 ...

mer än 5 år ago

Solved

Return fibonacci sequence do not use loop and condition version 3

Calculate the nth Fibonacci number,return sequence Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... ...

mer än 5 år ago

Solved

Project Euler: Problem 11, Largest product in a grid

What is the greatest product of _k_ adjacent numbers in the same direction (up, down, left, right, or diagonally) in a _n×n_ gri...

mer än 5 år ago

Solved

More Simple String Concatenation

Take the first string input, reverse the order of the string from the end to beginning (i.e. apple becomes elppa), add a space a...

mer än 5 år ago

Solved

Find the index of the lowest number in a matrix

Take a matrix, and find the [row cal] index of the lowest number

mer än 5 år ago

Solved

Component area

Find the area of the component below, all measurements are in mm <<https://image.ibb.co/hocruF/Component.png>>

mer än 5 år ago

Solved

Rewrite setdiff to account for non-unique values

Setdiff(a,b) is a function that will remove all values of b from a. Sometimes, you need this function to do a little bit extra,...

mer än 5 år ago

Solved

Make one vector from two others

You are given two vectors of equal length. Your task is to create a MATLAB script that will repeat all of the values in the fir...

mer än 5 år ago

Solved

Multivariate polynomials - emulate symbolic form

In <https://www.mathworks.com/matlabcentral/cody/problems/44262-multivariate-polynomials-overload-multiplication Problem 44262> ...

mer än 5 år ago

Solved

Multivariate polynomials - overload multiplication

Problems <https://www.mathworks.com/matlabcentral/cody/problems/44260-multivariate-polynomials-convert-monomial-form-to-array 44...

mer än 5 år ago