Jump to content

substract monthly values from daily ones

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1
Colfiii

Colfiii

    Newbie

  • Members
  • Pip
  • 1 posts
Hi,

I have a vector with 365 values - V1(i=1:365) and one with 12 , V2(i=1:12). One corresponds to some yearly data one to monthly data. Considering each value in V2 is a month , for each value in V1 I have to substract the corresponding value in V2 as following : for each value in V1 corresponding to january I substract january from V2 i.e V2(2) , for each value in V1 corresp to february I substract the montly value for february and so on. How could I write a program for that ? I m thinking to use 3 contors containing 28 , 30 and 31 values but I m not yet sure how. Thanks

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
What language? I'm also not real clear on what it should be doing.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog