- 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
6 ビュー (過去 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!