- 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 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuesta aceptada
Naren
el 8 de Mayo de 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.
Más respuestas (0)
Ver también
Categorías
Más información sobre Introduction to Installation and Licensing en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!