2

Is there any function that considers German bank holidays in Matlab? I need to mark German holidays as part of a "weekend and holiday matrix" over several years in Matlab to estimate mean values for i) weekends and holidays and for ii) workdays.

LenaH
  • 313
  • 2
  • 14
  • 1
    Certainly not. You need to download the german band holidays data somewhere, save it as a file and then import it in matlab. – Jannick Feb 14 '17 at 11:45
  • 1
    Related: [Holiday files for G20 countries](http://stackoverflow.com/q/1029794/5358968) – Steve Feb 14 '17 at 11:48
  • MATLAB has a lot of inbuilts but this seems like too far! However you can probably find that information somewhere and make a function yourself. – Ander Biguri Feb 14 '17 at 11:50
  • There an inbuilt `holidays` function , but you have to manually add the dates plus you must have a financial toolbox which isnt a very good solution , so your best bet is to find and add these dates manually to a datetime vector – Novice_Developer Feb 14 '17 at 12:08

2 Answers2

2

Matlab doesn't has a function like holidays to other countries. You can implement a function and load the datetimes. Here you can see an implementation like holidays to african public holidays:

African holidays

File function

1

You can try a Webservice via ReST that delivers banking holidays / public holidays in germany.

E.g. http://pubhday.fho.one/2/isWorkDay?date=2016-11-01&state=DE-BY&license=!!Testkey!!&postalcode=85614

Found at: https://www.smart-webservice.com

Florian71
  • 11
  • 2