Feeds
提问
Substracting matrix with NaN values
I have 4 matrix A, B, C and D. All matrix have NaN values, and matrix C and D have a lot of NaN values. Now I want to take A and...
7 years 前 | 2 个回答 | 0
2
个回答提问
Sort stocks into portfolios based on two characteristics
I have 3 matrix with the dimension 235x7690. The 235 represent months, the first month is june 1995, and 7690 are the number of ...
7 years 前 | 1 个回答 | 0
1
个回答提问
Create new matrix based on an existing one
I have a big matrix. Now I want to create a new matrix that takes the first value in each column and changes the following 11 va...
7 years 前 | 1 个回答 | 0
1
个回答提问
Replace values in a matrix below 1% and above 99%
I have a big Matrix. In the Matrix I have a lot of values but also some NaN. Now £I want to replace all values that are below 1%...
8 years 前 | 1 个回答 | 0
1
个回答提问
change equal values in a column to nan
I have matrix with several columns and rows. Most of the columns are like (1.02 1.05 1.03 1.04 1.04 1.04 1.04 .. 1.04). No I wou...
8 years 前 | 1 个回答 | 0
1
个回答提问
How to put dates on de x-axis
I have a vector with different values. I want to plot it and that on the x axis the dates appear. I don't have any vectors with ...
8 years 前 | 1 个回答 | 0
1
个回答提问
Add various horizontal lines to a plot
How can I add various horizontal lines to a plot? I have a plot and now I want to add several horizontal lines. I would like to...
8 years 前 | 3 个回答 | 2
3
个回答提问
Delete all values in a row after the first value
Hi everyone I have a matrix with 3000 rows and 4 columns. the values in the matrix are just one and zero. The sum of each row...
8 years 前 | 2 个回答 | 0
2
个回答提问
I have a dummy vector with 5000 rows and 1 column . I have some single 1 in this vector. No I want to change all 0 before the 1 to 1 and also change the 3 following 0 after the 1 to 1. But I don't know how. Could someone help me?Thank you a lot.
In gener i would like to change 0 0 1 0 0 0 0 to 0 1 *1* 1 1 1 0
8 years 前 | 3 个回答 | 0