thank you Gareth.
I used @vec because I needed the complete data. @vech is only for the upper triangle of a squared matrix, but I could have not reached to that without your help. :)
Search found 35 matches
- Mon Aug 18, 2014 11:15 pm
- Forum: Programming
- Topic: Matrix to vector
- Replies: 2
- Views: 4024
- Tue Aug 12, 2014 5:53 am
- Forum: Programming
- Topic: Matrix to vector
- Replies: 2
- Views: 4024
Matrix to vector
Good afternoon.
I wonder if there is a way (command) to put all the elements of a matrix (row by row) into a vector without using a loop.
Example:
Matrix A = [2 3
4 5]
Vector B = [2 3 4 5]
Thanks in advance
I wonder if there is a way (command) to put all the elements of a matrix (row by row) into a vector without using a loop.
Example:
Matrix A = [2 3
4 5]
Vector B = [2 3 4 5]
Thanks in advance
- Wed Jun 11, 2014 9:06 am
- Forum: Programming
- Topic: Work with data from a txt file
- Replies: 4
- Views: 17497
Re: Work with data from a txt file
just in case anyone has this problem in the future
Code: Select all
shell del C:\Users\...\input.txt- Wed Jun 11, 2014 8:54 am
- Forum: Programming
- Topic: Work with data from a txt file
- Replies: 4
- Views: 17497
Re: Work with data from a txt file
thanks a lot.
I will do some trials with the shell command to see if I can delete the file
I will do some trials with the shell command to see if I can delete the file
- Wed Jun 11, 2014 8:15 am
- Forum: Programming
- Topic: Work with data from a txt file
- Replies: 4
- Views: 17497
Work with data from a txt file
I need to save into a scalar object the result of 52.32/10.01 I tried with read(t=dat) input.txt 2 but that creates two series objects named as the data got from the file :s The format of the input file is like the one attached. That is the only thing I need to do with the file. Once used (saving th...
- Thu Jun 05, 2014 8:27 am
- Forum: Programming
- Topic: Problem with @weekday
- Replies: 2
- Views: 3881
Re: Problem with @weekday
thank you trubador. I have being also trying with @datediff and I got something "usable", but your way is much better and easier, that is what I was looking for. Thanks again :)
- Thu Jun 05, 2014 3:41 am
- Forum: Programming
- Topic: Problem with @weekday
- Replies: 2
- Views: 3881
Problem with @weekday
Good afternoon. I have another problem now :s I want to generate prices during a period, but only from Mon to Fri. I also need a vector with the dates. Without that constrain it is easy, I have a vector where the first element could be datesvector(1) = @dateval("03/01/2014"), and price(1) ...
- Tue Apr 08, 2014 8:25 am
- Forum: Programming
- Topic: out of memory
- Replies: 4
- Views: 5110
Re: out of memory
thanks for the prompt answer, i will ask if we can have it (the 64 bit one)
- Tue Apr 08, 2014 8:16 am
- Forum: Programming
- Topic: out of memory
- Replies: 4
- Views: 5110
out of memory
I have been searching through the forum but I did not find it. While running a program, it gets out of memory. It generates 4000 matrixes of 365*365 data, and 4000 of 365*5. Is there a way so I can truncate those matrixes/data to 4 or 6 decimals? I think that would work the problem out. Thank you in...
- Fri Feb 14, 2014 4:17 am
- Forum: Data Manipulation
- Topic: Distribution Test
- Replies: 1
- Views: 3042
Distribution Test
Good afternoon Is there a way that given a series, Eviews could suggest the most "appropiate" distribution to fix those data? I mean, in tha same way I can do an empirical distribution test, to know the probability of those data following a concrete distribution (normal, exponential...), c...
- Thu Feb 06, 2014 2:03 am
- Forum: Programming
- Topic: Writing a new text file from different series + text
- Replies: 4
- Views: 5500
Re: Writing a new text file from different series + text
thanks a lot Gareth, I reckon I would not have reached to that part of the code in ages :(
- Wed Feb 05, 2014 10:06 am
- Forum: Programming
- Topic: Writing a new text file from different series + text
- Replies: 4
- Views: 5500
Re: Writing a new text file from different series + text
This is what I have "achieved".
What I need is that instead of the name of the series above the values, a header like this appears:
What I need is that instead of the name of the series above the values, a header like this appears:
k /1*30/;
NUMBER Temp(k);
- Wed Feb 05, 2014 5:17 am
- Forum: Programming
- Topic: Writing a new text file from different series + text
- Replies: 4
- Views: 5500
Writing a new text file from different series + text
Good afternoon. After trying many different ways, I failed to write a text file from a program. The file should be as the one I attach, but letting the user to write in the first line whatever he/she wants. The values would be taken from a series, and the numbers within the brackets are the index. T...
- Thu Dec 19, 2013 5:05 am
- Forum: Programming
- Topic: Exporting dates to xlsx?
- Replies: 8
- Views: 11331
Re: Exporting dates to xlsx?
and is it possible to export a series (alphaseries) to a text file without quotes and without the alphaseries names?? Being SeriesAlpha1 my alpha series save(type=text) "D:\Exit1.txt" @keep SeriesAlpha1 write(t=txt, nonames) d:\Exit2.txt SeriesAlpha1 I get "Pre('1') = 1" "Pr...
- Mon Dec 16, 2013 9:07 am
- Forum: Programming
- Topic: Little break/pause in a program
- Replies: 2
- Views: 4147
Re: Little break/pause in a program
That works perfectly. Also the code to check if other process is finished would be quite difficult.
Thank you Gareth
Thank you Gareth
