From: Jigar on 5 Apr 2010 18:07 does anyone have any suggestions?? "Jigar " <jpatel(a)atlantictrust.com> wrote in message <hpctrq$3if$1(a)fred.mathworks.com>... > Hi, > > I am trying to rename two time series data within a financial time series object. The data is obtained as follows – > > m1_dates = intersect(spx_div.dates,b_yld.dates); > m1_data = [spx_div(datestr(m1_dates)),b_yld(datestr(m1_dates))]; > > m1_dates is series of dates and > > m1_data(1) > > >> m1_data(1) > > ans = > > desc: // > freq: Unknown (0) > > 'dates: (1)' 'series1_ans1: (1)' 'series1_ans2: (1)' > '30-Jun-1993' [ 2.8295] [ 5.7760] > > > I would like to rename ‘series1_ans1’ and ‘series1_ans2’ > > I tried the following and it didn’t work > > m1_data.spx_div = m1_data.series1_ans1; > m1_data.b_yld = m1_data.series1_ans2; > > the error was – > > ??? Subscript indices must either be real positive integers or logicals. > > Error in ==> fints.subsasgn at 141 > b = b.data{4}(:, bnameidx); > > I couldn’t figure out how another way to rename the objects. If it’s a time series you can use the fints (date, data, names) format but since I am not using that to create the financial time series I am not sure how to rename the object? Can you please help?
|
Pages: 1 Prev: Simscape language tutorial Next: How to trigget two channels for analog input simulteneously? |