Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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.

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


Matrix multiplication
Multiply two incoming matrices via matrix multiplication

mehr als 6 Jahre vor

Gelöst


Sum two matrices
Take two incoming matrices, and sum them

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


Matrix Max Finder
Output the maximum value in a matrix

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Gelöst


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

mehr als 6 Jahre vor

Mehr laden