Question
I have my options file for my License Server set using MAX_BORROW_HOURS to set a number of hours for my users to check out licenses. However, when checking out licenses in MATLAB, I notice that the timeframe is only ever set for a number of days, and I am unable to set a specific number of hours to borrow. How can I borrow licenses for a timeframe more granular than a day?
Expert Answer
John Williams
PhD Expert
Answered Aug 11, 2026
Licenses can only be borrowed for a specified number of days. When borrowing licenses in MATLAB, the license will be borrowed until 11:59 PM of the day the license is borrowed until. For example, If I were to borrow a license for 3 days, the license will be borrowed until midnight of the day listed in the borrowing UI. It is not possible to specify a timeframe more specific than the number of days.
If using MAX_BORROW_HOURS to limit the timeframe licenses can be borrowed, please add an additional 24 hours to the timeframe so licenses can be borrowed until the end of the day for the desired limit. For example, if you want to limit your users to borrow for 24 hours, set MAX_BORROW_HOURS to 48. This will allow users to borrow licenses for 2 days in the borrowing UI, which would be until midnight the next day.
100% Run Guarantee
3-Hour Fast-Track Delivery
Need a Custom Version or Complete Simulation for This Problem?
Our 500+ PhD engineers build, debug, and optimize working MATLAB scripts and Simulink (.slx) models tailored to your exact assignment rubrics with zero plagiarism.
Tested on MATLAB R2024b / R2026a
Turnitin 0% Plagiarism Report
Free 7-Day Revisions Guarantee
Have a different question? Ask here
Related MATLAB Questions & Solutions
Browse All →
Explore similar technical troubleshooting questions and verified MATLAB solutions:
Ready-to-Run MATLAB & Simulink Projects
Browse All Projects →