필터 지우기
필터 지우기

Difficulty using the database function

조회 수: 2 (최근 30일)
Blue
Blue 2024년 5월 7일
댓글: Blue 2024년 5월 8일
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 ?

채택된 답변

Naren
Naren 2024년 5월 8일
  댓글 수: 1
Blue
Blue 2024년 5월 8일
Indeed, I changed the pathdef and now it works. Thank you for your answer. I still dont understand how the pathdef might cause the error above however

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Database Toolbox에 대해 자세히 알아보기

태그

제품


릴리스

R2024a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by