From: Jigar on
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 &#8211;
>
> 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 &#8216;series1_ans1&#8217; and &#8216;series1_ans2&#8217;
>
> I tried the following and it didn&#8217;t work
>
> m1_data.spx_div = m1_data.series1_ans1;
> m1_data.b_yld = m1_data.series1_ans2;
>
> the error was &#8211;
>
> ??? Subscript indices must either be real positive integers or logicals.
>
> Error in ==> fints.subsasgn at 141
> b = b.data{4}(:, bnameidx);
>
> I couldn&#8217;t figure out how another way to rename the objects. If it&#8217;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?