Month function - License checkout failed
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hello
I am having an issue when i use the month() function from my GUI made in designer. When i call the function in the Command Window, it works fine, but when my GUI calls it, it says somthing about my license for Financial_Toolbox has expired. I have never used the toolbox and i did not think month() was a part of it. I get the following error
License checkout failed.
License Manager Error -10
Your license for Financial_Toolbox has expired.
If you are not using a trial license contact your License Administrator to obtain an updated license.
Otherwise, contact your Sales Representative for a trial extension.
1 Kommentar
Walter Roberson
am 28 Nov. 2019
month() is part of the Financial Toolbox.
But possibly you are using a datetime object: month() is also a method for datetime objects.
Is it possible that you are using load() inside the function that is having problems, and that you are are not assigning the result of load to a variable?
Or is it possible that the thing you are taking month() of is ending up as [] ?
Time to use the debugger.
Antworten (1)
Chidvi Modala
am 3 Jan. 2020
“month” function is present in both MATLAB and Financial toolbox. Distinguishing the datatime method called “month”, from the Financial Toolbox function “month” requires knowing the input type. The analysis tracks variable types, but not for temporary variables without a name. If the datatime object is assigned a name, the analysis will correctly deduce the type and therefore calls the “method” function you require
You can make use of following code and it does not report a Finance Toolbox dependency
d = datetime(date);
thismonth = month(d);
2 Kommentare
Walter Roberson
am 3 Jan. 2020
Wuhhh???
How about cases like
foo.d = datetime(now);
thismonth = month(foo.d);
Is foo.d a temporary variable without a name?
This calls for more testing...
Walter Roberson
am 3 Jan. 2020
I'm liking my speculation of a load() without an assignment better. My testing so far is not consistent with the explanation of temporary variables versus named variables. On the other hand, I do not have any expired toolbox licenses to test with.
Siehe auch
Kategorien
Mehr zu Manage Products finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!