Resuelto

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

más de 5 años hace

Resuelto

"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) ...]...

más de 5 años hace

Resuelto

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

más de 5 años hace

Resuelto

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

más de 5 años hace

Resuelto

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

más de 5 años hace

Resuelto

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

más de 5 años hace

Resuelto

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

más de 5 años hace

Resuelto

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.

más de 5 años hace

Resuelto

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

más de 5 años hace

Resuelto

Replace 0 indices in array with 1's
Take a incoming vector, and replace 0's with ones

más de 5 años hace

Resuelto

Vector indexing: lower than mean
Find all values in a vector lower than the mean of the vector

más de 5 años hace

Resuelto

Resizing Matrices
Take an 4x3 matrix, and resize it to a 2x6 matrix

más de 5 años hace

Resuelto

Matrix Ax=B problem
Take a incoming A and B vector, and solve for x

más de 5 años hace

Resuelto

Matrix multiplication
Multiply two incoming matrices via matrix multiplication

más de 5 años hace

Resuelto

Sum two matrices
Take two incoming matrices, and sum them

más de 5 años hace

Resuelto

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

más de 5 años hace

Resuelto

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

más de 5 años hace

Resuelto

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

más de 5 años hace

Resuelto

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

más de 5 años hace

Resuelto

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

más de 5 años hace

Resuelto

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

más de 5 años hace

Resuelto

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

más de 5 años hace

Resuelto

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

más de 5 años hace

Resuelto

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

más de 5 años hace

Resuelto

Matrix Max Finder
Output the maximum value in a matrix

más de 5 años hace

Resuelto

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

más de 5 años hace

Resuelto

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

más de 5 años hace

Resuelto

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

más de 5 años hace

Resuelto

Multivariate polynomials - emulate symbolic form