- 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
8 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Akzeptierte Antwort
Naren
am 8 Mai 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.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Introduction to Installation and Licensing 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!