已解决


First non-zero element in each column
For a given matrix, calculate the index of the first non-zero element in each column. Assuming a column with all elements zero ...

11 years 前

已解决


Interpolator
You have a two vectors, a and b. They are monotonic and the same length. Given a value, va, where va is between a(1) and a(end...

11 years 前

已解决


Sort complex numbers into complex conjugate pairs
Sort complex numbers into complex conjugate pairs. Example: Input x = [3-6i -1-4i -1+4i 3+6i] Sorted output = [-1 - ...

11 years 前

问题


Sort complex numbers into complex conjugate pairs
Sort complex numbers into complex conjugate pairs. Example: Input x = [3-6i -1-4i -1+4i 3+6i] Sorted output = [-1 - ...

11 years 前 | 0 | 116 个解题者

已解决


Method of Common Differences part-1
Use the method of common differences to output a vector containing the initial values and the nth order difference. ex ...

11 years 前

已解决


Mode
Find the mode of the vector Assumption: no vector is bimodal Example 1: input=[1 2 3 4 4]; output=4 Example 2: input=[7...

11 years 前

问题


Mode
Find the mode of the vector Assumption: no vector is bimodal Example 1: input=[1 2 3 4 4]; output=4 Example 2: input=[7...

11 years 前 | 1 | 388 个解题者

已解决


Duplicate a character
Duplicate a character 'n' times. Example 1: str='a' n=5 output='aaaaa' Example 2: str='*' n=3 output='***'

11 years 前

问题


Increment element in vector
Given a n * 2 matrix such that the first column denotes start value and second column denotes number of increments, create a out...

11 years 前 | 0 | 2 个解题者

已解决


Convert Two Character String into a Binary Vector
Given a string "XOXXO" convert it into a binary vector. [1 0 1 1 0] Paul Berglund implemented an optimal method in <http://ww...

11 years 前

问题


Duplicate a character
Duplicate a character 'n' times. Example 1: str='a' n=5 output='aaaaa' Example 2: str='*' n=3 output='***'

11 years 前 | 3 | 227 个解题者

已解决


Symmetry of vector
Determine whether the vector is symmetric or not (vector could be even or odd in length). For example: x = [1 2 3 3 2 1] ...

11 years 前

已解决


Is it a number?
Determine if input is numeric. If it is,output is 1; if it is not, output is 0.

11 years 前

问题


Symmetry of vector
Determine whether the vector is symmetric or not (vector could be even or odd in length). For example: x = [1 2 3 3 2 1] ...

11 years 前 | 10 | 963 个解题者

已解决


Saving MATLAB session to a file
How to save MATLAB session to a file?

11 years 前

已解决


Basics: Divide integers to get integer outputs in all cases
Divide integers a and b in such a way that output y is always an integer (in ceil manner)

11 years 前

已解决


Close MATLAB with keyboard
Close MATLAB with keyboard without using mouse

11 years 前

已解决


Who has power to do everything in this world?
There is only one person who is older than this universe. He is Indian version of Chuck Norris.

11 years 前

已解决


Convolution Power
Create the convolution-power vector from initial vector _x_ and power _n_. In other words, similar to the scalar case, raising ...

11 years 前

已解决


Volume of a Simplex
Return the volume of a <http://en.wikipedia.org/wiki/Simplex regular _n_-simplex> with a unit side length. Results are up to...

11 years 前

已解决


Create an n-by-n null matrix and fill with ones certain positions
The positions will be indicated by a z-by-2 matrix. Each row in this z-by-2 matrix will have the row and column in which a 1 has...

11 years 前

问题


Remove entire row and column in the matrix containing the input values
Remove the entire row and column from the matrix containing specific values. The specified value can be a scalar or a vector. Fo...

11 years 前 | 5 | 340 个解题者

已解决


sinus function
x is the abscissa. find the absolute value of cosine of -x and the same value with changed sign.

11 years 前

已解决


subtract central cross
Given an n-by-n square matrix, where n is an odd number, return the matrix without the central row and the central column.

11 years 前

已解决


frame of the matrix
Given the matrix M, return M without the external frame.

11 years 前

已解决


only input
Return the output without writing any code into the function.

11 years 前

已解决


random binary sequence using matlab
Hi..am new to matlab..help me out in generating a binary sequence using matlab.

11 years 前

已解决


Volume of this donut
Given hole diameter a, and outermost diameter b, determine the volume y of the resulting donut.

11 years 前

已解决


Continued fractions
Find a <http://en.wikipedia.org/wiki/Continued_fraction continued fraction> approximation of x.

11 years 前

已解决


Is it an Armstrong number?
An Armstrong number of three digits is an integer such that the sum of the cubes of its digits is equal to the number itself. Fo...

11 years 前

加载更多