- 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
4 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Naren
2024-5-8
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.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!