Community Profile

Francis Chabot

Last seen: 1 year ago Active since 2021

Content Feed

View by

Question

Creating a 3D matrix by combination of a 3D matrix and a 2D matrix
Hello community, I'm trying to add data from a 2D matrix to an existing 3D matrix in my code. My 3D matrix is 125x2x20 (125: ...

1 year ago | 1 answer | 0

1

Question

Repeat a cumulative sum in a matrix
Hello, I have matrix of dimensions 2784x252 which represents monthly returns. I am trying to put them into annual returns which...

1 year ago | 2 answers | 0

2

Question

Selecting range of data in a matrix
Hello, I'm trying to create different groups from a matrix of dimensions 2784x1. Data in the matrix range from 0100:9999. From...

1 year ago | 2 answers | 0

2

Question

For loop indexing problem
Hello, I'm trying to use a for loop to be able to create a new matrix much more quickly. The loop is : for ii=1:Nco; for...

1 year ago | 1 answer | 0

1

Question

Selection of logical data
Hello, I have a matrix with this form: 1 156 NaN NaN NaN 1 157 NaN NaN NaN 1 158 1.85185185185185 2.63157894736842 2.0408163...

1 year ago | 1 answer | 0

1

Question

Split a matrix in quintile based on ascending order
Hello, I have a matrix of 2874x26 that I'd like to split into quintile for each of the 26 years. I've tried the quantile functi...

2 years ago | 0 answers | 0

0

Question

Creating a function for median
Hello, I have a code that helps me calculate the median by SIC code that I'd like to modify to be able to use it as a function....

2 years ago | 1 answer | 0

1

Question

Import data from Excel
Hello, I'm trying to input data from Excel by column and when doing it the first data which is suppose to end up in a NaN doesn...

2 years ago | 1 answer | 0