photo

Cathal Cunningham


Last seen: 1 month ago Active since 2018

Followers: 0   Following: 0

Message

Statistics

  • First Answer

View badges

Feeds

View by

Answered
Plot time series data in MATLAB
You could try something like this: yrs = [1958:1:2001]; lbls = cell(numel(yrs),1); for i = 1:numel(yrs) lbls{i...

6 years ago | 0

Answered
Add data of a matrix based on an other matrix
Use logical indexing to do this % Pre-build array C = zeros(1,size(unique(A),2)); for i = 1:length(C) C(i) = s...

6 years ago | 0

Answered
Lay one vector onto another
One method would be a for loop filter = [0 0 0 0 0 0 0 0 0 0 ]; values = [1 2 1]; startIdx = 3; for i = startIdx:l...

6 years ago | 0

Answered
Grouping repetead values in cells
Is the matrix _B_ in this case a cell array or a matrix? The comment ""%large numerical matrix" would suggest that it's a numeri...

6 years ago | 0

Answered
Fit multiple curves in one graph using least squares
You could try fit (allows polynomial line fitting amongst others) or glmfit (Generalized Linear Model Fit) which allows you to d...

6 years ago | 0