질문


Repeat previous row if condition
Hi, I have an nx2 matrix, the first column gives the order, 10 20 30 40 and then repeats again, but if there is no observation ...

7년 이하 전 | 답변 수: 2 | 0

2

답변

질문


Convert to serial using only year and month (no day)
Is there a way to convert from matrix A (5x3) where the first element is year and the second element is month (no day element) ...

약 7년 전 | 답변 수: 2 | 0

2

답변

질문


Superimpose matrices of different sizes
Hello, I have matrix A 2x5 of NaN A=... [NaN NaN NaN NaN NaN; NaN NaN NaN NaN NaN] and another B matrix 2x3: ...

약 7년 전 | 답변 수: 2 | 0

2

답변

질문


2D matrix to 3D matrix given index in the 2D matrix col1
Hello, I need to construct a 3D matrix using a 2D matrix. As an example, take matrix A which is 7x4. First element of fir...

약 7년 전 | 답변 수: 1 | 0

1

답변

질문


fmincon non linear constraint: too many input arguments
Hello, I need to minimize a log-likelihood function subject to a non-linear constraint. So I created a function for this constr...

약 7년 전 | 답변 수: 1 | 0

1

답변

질문


Monthly averages for each year using daily data in datenum form
Hi, I have matrix A (4000x2), the first column is daily data in datenum form. For example I have 734459, which using datestr br...

약 7년 전 | 답변 수: 1 | 0

1

답변

답변 있음
Simil to VLOOKUP (but ismember index 0)
Thanks a lot, that solves my problem.

약 7년 전 | 0

질문


Simil to VLOOKUP (but ismember index 0)
Hello, I have array A 10x1 and array B 3x2 as below A=[1; 2; 3; 4; 5; 6; 7; 8; 9; 10]; B=[2 100; 4 500; 7 300]; I nee...

약 7년 전 | 답변 수: 2 | 0

2

답변

질문


fminsearch terminates/converges for a high fval
Hello, I am trying to estimate the parameters of a function but the optimization terminates even though the objective function i...

약 7년 전 | 답변 수: 1 | 0

1

답변

답변 있음
elseif using specific sets
I'll use "while" instead, thanks though X=[1 2; 0 1; -1 4; 4 7; 10 10; 0 0] ii=1 y=1e-10 while y<10 y=X(ii,1)+X...

약 7년 전 | 0

| 수락됨

질문


elseif using specific sets
Hello, I need to evaluate a function for specific sets, ideally don't want to evalute the function for all sets so once it is ab...

약 7년 전 | 답변 수: 1 | 0

1

답변

질문


Find repeated row from col1, average repeated from col2, erase repeated row
Hi, I have matrix A (7x2) where the first column has some repeated rows A=[54.5 300; 56 250; 57 100; 56 600; 56.5 700; 57 80...

약 7년 전 | 답변 수: 1 | 0

1

답변