photo

Mnr


Last seen: 3 years ago Active since 2014

Followers: 0   Following: 0

Message

Statistics

MATLAB Answers

38 Questions
0 Answers

RANK
19,598
of 300,779

REPUTATION
2

CONTRIBUTIONS
38 Questions
0 Answers

ANSWER ACCEPTANCE
81.58%

VOTES RECEIVED
1

RANK
 of 21,084

REPUTATION
N/A

AVERAGE RATING
0.00

CONTRIBUTIONS
0 Files

DOWNLOADS
0

ALL TIME DOWNLOADS
0

RANK

of 170,997

CONTRIBUTIONS
0 Problems
0 Solutions

SCORE
0

NUMBER OF BADGES
0

CONTRIBUTIONS
0 Posts

CONTRIBUTIONS
0 Public Channels

AVERAGE RATING

CONTRIBUTIONS
0 Discussions

AVERAGE NO. OF LIKES

  • Thankful Level 4

View badges

Feeds

View by

Question


a problem with unique command
Hello all, I have an mx1 vector A, that is ordered in an ascending manner. I would like to find unique elements of this vecto...

9 years ago | 1 answer | 0

1

answer

Question


a question on inner loops
Hello all, I would like to have 2 for loops such that the outer 1 counts i=1:M and the inner one from j=1:M but j~=i. How can...

10 years ago | 1 answer | 0

1

answer

Question


random generation of a matrix subject to a certain constraint
Hello there, Is there a way to randomly generate a mx1 matrix A, such that transpose(A)*B*A>=1? where B is an mxm matrix? ...

10 years ago | 1 answer | 0

1

answer

Question


Is there a function that performs similar to 'accumarry' but multiplies instead of accumulates?
Hello all, Is there a function that performs similar to 'accumarry' but multiplies instead of accumulates? Thank you!

10 years ago | 1 answer | 0

1

answer

Question


repeating elements of a vector in a certain manner
Hello all, I have a vector A of length n. I would like to create a new vector B which contains each element of A repeated m tim...

10 years ago | 2 answers | 0

2

answers

Question


How to generate all d combinations of elements of a vector of length M?
Hello all, I have a vector of H length M; I would like to create a new matrix V with size dx(M^d), where each column of V con...

10 years ago | 1 answer | 0

1

answer

Question


Fastest way to multiply each block of an array with another matrix
Hello all, I have a 12x4xN array which I would like to multiply each 12x4 block by a 4x16 matrix in order to get a 12x16xN ar...

10 years ago | 2 answers | 0

2

answers

Question


multiplying 2 matrices with difference sizes
Hello all, I have a 12x16 matrix, M, [ 0 0 1 0 0 0 0 -1 0 1 0 0 -1 ...

10 years ago | 1 answer | 0

1

answer

Question


how to generate 2^16 different combinations of a vector containing 0 and 1 only?
Hello all, I would like to generate 2^16 different combinations of 16 bits containing 0s and 1s. I have tried different ways ...

10 years ago | 1 answer | 0

1

answer

Question


replacing a for loop
Hello all, I have a simple piece of code that I would like to get rid of the for loop. I would appreciate your help. ...

10 years ago | 1 answer | 0

1

answer

Question


multiplying each non zero element of a sparse matrix by a certain number
Hello all, I have a sparse matrix S with few non-zero elements in its row and columns. I have a vector P with the same number...

10 years ago | 3 answers | 0

3

answers

Question


finding the row number of a matrix
Hello there, I have two matrices one A with size MxN and the other one B with size KxN, and rows of B are taken from rows of ...

10 years ago | 1 answer | 0

1

answer

Question


How to get rid of a loop?
Hello all, Is there is way of getting rid of the following loop in order to speed up the code? for mk=1:Mk V(:,mk,:)=...

10 years ago | 0 answers | 0

0

answers

Question


concatenating the several matrices in a certain manner
Hello all, I have N J matrices all with the same size. I would like to concatenate them in a way such that I would get a new ...

10 years ago | 1 answer | 0

1

answer

Question


multiplying a 1xM vector by a KxN matrix
Hello there, I have a 1xM vector, say V=[1 -1]; I would like to multiply it by a KxN matrix, say S=[0 0 1 1;1 1 0 0;1 0 1 0;...

10 years ago | 1 answer | 0

1

answer

Question


how to generalize a nested for-loop?2
Hello all, Per my earlier question in http://www.mathworks.com/matlabcentral/answers/252008-a-simpler-way-of-doing-a-nested-l...

10 years ago | 2 answers | 0

2

answers

Question


how to generalize a nested for-loop?
Hello all, Per my earlier question in http://www.mathworks.com/matlabcentral/answers/252008-a-simpler-way-of-doing-a-nested...

10 years ago | 1 answer | 0

1

answer

Question


a simpler way of doing a nested loop
Hello, Is there a more efficient alternative way that does the same function as: V=[1+1i +1-1i -1+1i -1-1i]; for m1=1...

10 years ago | 2 answers | 0

2

answers

Question


concatenating elements of an array in a certain manner
Hello all, I have a matrix b, with the dimension of NxLxNm. I would like to first consider b(:,:,1) up to b(:,:,j-1) where j ...

10 years ago | 2 answers | 0

2

answers

Question


A fast way of reshaping a cell array with elements with different sizes
Hello all, I have a cell array in this form: a=[1x16x16 double] [1x8x16 double] [1x4x16 double] [1x2x16 double]...

10 years ago | 2 answers | 0

2

answers

Question


a question about the for loop index
Hello, I would like to have a for loop with its index k ranging from e.g. 8 to 1 such that in the first iteration k=8, in the...

10 years ago | 1 answer | 0

1

answer

Question


a basic question in matlab
Hello all, If I have a 1xLxN matrix and would like to reshape it in order to get a LxN matrix, how I can do that? In particul...

10 years ago | 1 answer | 0

1

answer

Question


how to find the largest power of 2 that a number is divisible?
Hello all, How can I write a code that finds the largest integer power of 2 that a number is divisible? For instance, the lar...

10 years ago | 3 answers | 0

3

answers

Question


how to write an if statement for a matrix with some NaN elements?
Hello all, I have a matrix with some elements 0s or 1s and the rest are NaNs. I would like to write an if statement that igno...

10 years ago | 1 answer | 0

1

answer

Question


how to find the nearest smallest power of 2 to an integer?
Hello all, I would like to write a code that finds the nearest smallest power of 2 to integers. For instance, if my integer ...

10 years ago | 1 answer | 0

1

answer

Question


counting the number of non-zero or zero elements in a specific direction of an array
Hello there, I have an 8x3x5 array, and would like to count its number of zeros and non-zeros across its 3rd dimension. In pa...

10 years ago | 1 answer | 0

1

answer

Question


A question about for loop
Hello all, I have a vector p=[.5 .7 .2]; I have a quantity d that is equal to (1-p(1))*(1-p(2))*p(3)+(1-p(1))*p(2)*(1-p(3))+...

11 years ago | 1 answer | 0

1

answer

Question


how to plot a function that is piece-wise linear?
Hello all, I have the attached function, alphastar, which I would like to plot it versus the gamma variable for a fixed value...

11 years ago | 0 answers | 0

0

answers

Question


finding the frequency of each row (2)
Hello all, Per my previous question, I have several mx2 matrices with rows from (0,1), (-1,0), (0,1), (0,-1), (1,1), (-1,1), ...

12 years ago | 2 answers | 0

2

answers

Question


How to find the frequency of each row with certain coordiante in a matrix?
Hello all, I have an mx2 matrix with its rows (0,1), (-1,0), (0,1), (0,-1), (1,1), (-1,1), (1,-1),(-1,-1); I would like to fi...

12 years ago | 2 answers | 1

2

answers

Load more