- https://www.mathworks.com/matlabcentral/answers/96290-how-can-i-move-my-matlab-path-from-my-old-version-of-matlab-over-to-a-new-version
- https://www.mathworks.com/matlabcentral/answers/102037-how-can-i-move-the-pathdef-m-file-from-its-default-location-to-another-location
- https://www.mathworks.com/matlabcentral/answers/166871-how-will-running-the-restoredefaultpath-and-savepath-commands-affect-my-custom-paths-and-how-do
Difficulty using the database function
5 views (last 30 days)
Show older comments
Hi. I have Matlab 2021b and Matlab 2024a installed and with Matlab 2021b I can easily connect to a database via an ODBC bridge just like in the documentation example :
conn=database('odbcdatasource','scott','tiger')
The same line of code doesnt work with Matlab 2024a. I get the error
Dot indexing into the result of a function call requires parentheses after the function name. The supported syntax is 'database().internal'.
Error in database (line 59)
connection = database.internal.utilities.hdatabase(varargin{:});
I dont get it. What am I doing wrong ?
0 Comments
Accepted Answer
Naren
on 8 May 2024
Hello,
The issue may be occurring because the `pathdef.m` file was copied from MATLAB R2021b to R2024a without any changes. To resolve the issue make appropraite changes to the document.
Refer to the following links for more information:
regards.
More Answers (0)
See Also
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!