Error when running certain function

Hello all
I am running some simple functions such as today() and weeknum() on matlab 2016b and get the following error message.
*To use 'weeknum', the following product must be both licensed and installed: Financial Toolbox*
I already verified the path of matlab to make sure its setup correctly.
Can anyone please advice on how to fix this issue?

Risposte (1)

Type the command
ver
in the command line, and check in the list if Financial Toolbox is there. If not, you need to install it.

3 Commenti

Thanks Massimo.
Financial Toolbox is not installed on my home computer which is running 2016b.
But I do have matlab 2012b installed on my work computer and I don't have any issues running the function today() on that version which does not have the financial toolbox as well.
Thanks, Vishal
Are you sure your Matlab 2012b has not Financial toolbox installed? According to documentation, also in Matlab 2012b the weeknum function is under the Financial toolbox..
Have you checked running VER in the old version?
On your work system, please show the output of
which today
You might be picking up the function from a different piece of software.

Questa domanda è chiusa.

Prodotti

Chiuso:

il 20 Ago 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by