Feeds
질문
Extracting values from a smoothing spline fit
I've created a spline fit using curve fitting xdat = [1;2;3;4;5;6;7;8;9;10] ydat = [2;3;5;7;9;14;24;46;57;58] Splin...
거의 9년 전 | 답변 수: 2 | 0
2
답변답변 있음
How can I create a matrix out of a matrix?
B=sum(A,2) C=find(B~=0) D=[C A(C,:)] ??
How can I create a matrix out of a matrix?
B=sum(A,2) C=find(B~=0) D=[C A(C,:)] ??
대략 9년 전 | 0
답변 있음
Select every Nth row from number groups
I eventually solved this, and am posting my solution... The actual example had some strings containing a mixture of A and B's al...
Select every Nth row from number groups
I eventually solved this, and am posting my solution... The actual example had some strings containing a mixture of A and B's al...
대략 9년 전 | 0
| 수락됨
질문
Select every Nth row from number groups
I have a vector that looks like a = [1 1 1 1 1 0 0 0 0 0 0 0 1 1 1 0 0 0 1 1 1 1....] I would like to find the vector loca...
대략 9년 전 | 답변 수: 4 | 0
4
답변질문
Eliminate terrible for loop, code optimisation, data attached
The problem: I have 3 (very large) grids of data.... x y z, where x and y are variables that determine 'performance' z. T...
9년 초과 전 | 답변 수: 2 | 0
2
답변질문
Compute Average Matrix from Cell Array of Matrices
I have a cell array of matrices of different sizes and constant length: ABC = [(122x21) (124x21) (117x21)....] I would ...
9년 초과 전 | 답변 수: 4 | 0
4
답변답변 있음
Compute Average Matrix from Cell Array of Matrices
Both of these codes work great, but am struggling to fit both to my code. Matrices in my array will have strings in the first...
Compute Average Matrix from Cell Array of Matrices
Both of these codes work great, but am struggling to fit both to my code. Matrices in my array will have strings in the first...
9년 초과 전 | 0
질문
Two for loops, one loop completes for each step of another loop... Or a better way of doing finding the different combinations of elements in a vector that sum to target value
I have two 2x100 matrices (M1 and M2) of the following form: Variable1 100 200 300 400 500 600 700 800 900 1000 Output1 ...
9년 초과 전 | 답변 수: 1 | 0
1
답변질문
Overwrite empty cell array with strings
I have an empty cell array, I want to add a row of strings to this matrix. The empty matrix is 12x100. The row of strings can...
9년 초과 전 | 답변 수: 1 | 0
1
답변답변 있음
Find a string from one cell, in a cell array of matrices
This worked for i=1:40 a = B{i}(30,2); isthere{i}=strcmp(a,'mystring') end isthere2=cell2mat(isthere); locat...
Find a string from one cell, in a cell array of matrices
This worked for i=1:40 a = B{i}(30,2); isthere{i}=strcmp(a,'mystring') end isthere2=cell2mat(isthere); locat...
9년 초과 전 | 0
| 수락됨
질문
Find a string from one cell, in a cell array of matrices
Been stuck on this step for a few hours now... And stumped. My data is held in a cell array of matrices. I want to access the...
9년 초과 전 | 답변 수: 1 | 0
1
답변질문
Row numbers of the first zero, repeated
I have a column vector of 7000 data points... of the pattern 0 0 0 0 30 60 90 120 119 118.... 2 1 0 0 0 I want to return the ...
9년 초과 전 | 답변 수: 1 | 0
1
답변답변 있음
Curve fitting - how to find the residuals of new, unfitted data
Sorry!! I have found a solution to this. Incorporated the following into the code. This was the code for the residual plot fr...
Curve fitting - how to find the residuals of new, unfitted data
Sorry!! I have found a solution to this. Incorporated the following into the code. This was the code for the residual plot fr...
9년 초과 전 | 0
| 수락됨
질문
Curve fitting - how to find the residuals of new, unfitted data
I fit a curve to the first 5 data points in a series using the 'cftool' GUI. I plotted the entire data series against this cu...
9년 초과 전 | 답변 수: 1 | 0
1
답변질문
Loop through Matrix, to create multiple matrices from every nth row
Hi. I have a very large matrix (1600x19). Call this matrix A. I want to create new matrices from this, t(i), and save them...
9년 초과 전 | 답변 수: 1 | 0