已解决


Repeat string n times - 3
function myOutput = rep_str_3(string1, string2, num1, num2, n) function desiredOutput = rep_str_3('string1', 'STRING2', 0...

8 years 前

已解决


Repeat string n times - 2
This is the two variable version of <http://www.mathworks.com/matlabcentral/cody/problems/42482-repeat-string-n-times Repeat str...

8 years 前

已解决


combine cells
A cell type variable is created. However it has other cells in itself. we want to integrate them all in a single cell. the conte...

8 years 前

已解决


Equidistant numbers containing certain value in an interval
Given a lower and upper bound of an interval, distance between numbers, and one particular number from that interval, create an ...

8 years 前

已解决


sparse_matrix
You convert a vector to a sparse matrix. for example *x* =[1 2 3]; output will be *y* = [1 0 0 ...

8 years 前

已解决


Low level NaN
* I have a dataset. Columns represents different variables. * A variable may start with NaN or any double type number. * If i...

8 years 前

已解决


Give prime Numbers upto n
You are given a input number x; print all the prime numbers less than equal to x.

8 years 前

已解决


Fast 1-D Convolution (full shape)
This is the first problem in the <http://www.mathworks.com/matlabcentral/cody/?term=Fast+1-D+Convolution fast 1-D convolution se...

8 years 前

已解决


Find the next square number
Given one or more integers n, find the next integer that is a square, for each of them. Example 1: n = 1; out = 4; ...

8 years 前

已解决


Is my wife really right?
For every input, output the string 'yes' once. Example: [yes1, yes2] = YesSheIs('Am I right?', 'Do you love me?') yes1 = '...

8 years 前

已解决


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

8 years 前

已解决


Throw common elements of two vector arrays
Throw common elements as output of two given input vector arrays

8 years 前

已解决


Find Month & day for given day number of a year
Find Month & day for given day number of a year (day number is any number ranging from 1 to 366)

8 years 前

已解决


Step up
For given input array, output a array with all elements step up by two

8 years 前

已解决


Find the gcm of n given values
Create a function that given n integer values greater than zero, finds the two numbers with the greatest common divisor and retu...

8 years 前

已解决


Fill the matrix - 1
Input is a column vector and n. n columns will be added to the left of the input column. The first value of the row is the s...

8 years 前

已解决


Fill the Matrix - 2
Input is a column vector and n. n columns will be added to the left of the input column. The first value of the row is the me...

8 years 前

已解决


Raise a polynomial to a power
In Matlab, polynomials are represented by a vector of coefficients. For example, the polynomial p=a*x^2 + b*x + c is represente...

8 years 前

已解决


"Power matrix" of two vectors
Given two row vectors x,y of lengths m and n (respectively), create an m x n matrix whose i,j entry is x(i)^y(j).

8 years 前

已解决


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

8 years 前

已解决


Multiply by 3
Given the variable x as your input, multiply it by three and put the result in y.

8 years 前

已解决


square number
Square a number

8 years 前

已解决


Remove the Zero
Given an array n, remove all zeros

8 years 前

已解决


Find out sum of all elements of given Matrix
Find out sum of all elements of given Matrix A=[1 2 3;4 5 6 ;7 8 9]; Answer must be: 45 *If you like this problem, pl...

8 years 前

已解决


Average Grade
Given a 1x5 vector presents the grades of a student on five tests. Calculate the average grade of that student.

8 years 前

已解决


Convert from integer to binary
if true % decimalToBinaryVector(x) end

8 years 前

已解决


Find the area of a triangle
Given a triangle with a base b and height h, return the triangle area.

8 years 前

已解决


Odd elimination
Inspired by Project Euler problem #539 You'll be given a vector from 1 to n; Going from left to right, remove the first n...

8 years 前

已解决


Find the nearest prime
Given a positive integer 'n', the task is to find a prime number greater than or equal to 'n'. Example 1 If given 'n' is ...

8 years 前

已解决


Why?
Why has been a major question throughout history; why did Napoleon fail, why do we exist, why must I work a pageant, to name a f...

8 years 前

加载更多