A résolu


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

3 mois il y a

A résolu


Column Removal (★★★)
(copy of prob 7) Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2...

3 mois il y a

A résolu


remove every row&col for every nan
for a given matrix, remove the row and column of every nan. Example x=[1 2 NaN 4 5 6 7 8 ...

3 mois il y a

A résolu


Remove all the columns contains only zero
Remove the column from the matrix which has only zeros . Refer the Example below a= 1 0 3 0 23 0 56 0 1 ...

3 mois il y a

A résolu


row removal
Consider a matrix and remove the first row of the matrix.

3 mois il y a

A résolu


Remove a specific column with min value
Remove the column that contain the min value in the matrix? If you like the problem, please give it a like:)

3 mois il y a

A résolu


Remove a specific column with max value
Remove the column that contain the max value in the matrix? If you like the problem, please give it a like:)

3 mois il y a

A résolu


Remove a specific row with max value
Remove the row that contain the max value in the matrix? If you like the problem, please like it :)

3 mois il y a

A résolu


Remove a specific row with min value
Remove the row that contain the min value in the matrix? If you like the problem, please give it a like:)

3 mois il y a

A résolu


Construct an index vector from two input vectors in vectorized fashion
Create an index vector defined by two input vectors, one defining the beginnings of one or more index ranges, and the other defi...

3 mois il y a

A résolu


Find x rows where the sum of the numbers is the maximum
Find x rows where the sum of the numbers is the maximum. For example: when x is 2 and m is 2 3 5 0 2 3 5 5 6 0 9 4 then y =...

3 mois il y a

A résolu


Draw a '9' in a zero matrix!

3 mois il y a

A résolu


Draw a '8' in a zero matrix!

3 mois il y a

A résolu


Draw a '7' in a zero matrix!

3 mois il y a

A résolu


Draw a '6' in a zero matrix!

3 mois il y a

A résolu


Draw a '5' in a zero matrix!

3 mois il y a

A résolu


Draw a '4' in a zero matrix!

3 mois il y a

A résolu


Draw a '3' in a zero matrix!

3 mois il y a

A résolu


Draw a '2' in a zero matrix!

3 mois il y a

A résolu


Draw a '1' in a zero matrix!

3 mois il y a

A résolu


Implement a bubble sort technique and output the number of swaps required
A bubble sort technique compares adjacent items and swaps them if they are in the wrong order. This is done recursively until al...

4 mois il y a

A résolu


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

4 mois il y a

A résolu


Replicate elements in vectors
Replicate each element of a row vector (with NaN) a constant number of times. Examples n=2, A=[1 2 3] -> [1 1 2 2 3 3] n=0...

4 mois il y a

A résolu


Fill a zeros matrix
The aim is to fill an array of all zeros given a numerical value and the index of row and columns for this value. 3 Inputs: ...

4 mois il y a

A résolu


Matrix indexing with two vectors of indices
Given a matrix M and two index vectors a and b, return a row vector x where x(i) = M(a(i),b(i)).

4 mois il y a

A résolu


Return elements unique to either input
Given two numeric inputs a and b, return a row vector that contains the numbers found in only a or only b, but not both. For ex...

4 mois il y a

A résolu


middleAsColumn: Return all but first and last element as a column vector
Given input A, return all but the first and last elements, arranged as a column vector. (I.e., all dimensions after the first s...

4 mois il y a

A résolu


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

4 mois il y a

A résolu


We love vectorized solutions. Problem 1 : remove the row average.
Given a 2-d matrix, remove the row average from each row. Your solution MUST be vectorized. The solution will be tested for ac...

4 mois il y a

A résolu


Find the distance between runs
Another question inspired by the <http://uk.mathworks.com/matlabcentral/answers/?s_tid=gn_mlc_an answers forum>: A vector of ...

4 mois il y a

Charger plus