I am trying to connect my Postgres database in MATLAB and it is throwing me an error stating
"'JDBC Driver Error: org.postgresql.Driver. Driver Not Found/Loaded.'"
Here's my connection method that i have used.
conn = database('postgres','username','password','org.postgresql.Driver', 'jdbc:postgresql://localhost:5432/postgres=postgres');
after that it throws me the error.
I have looked at forums and they told me to add the postgres jar files to the MATLAB directory toolkit textfile, such as below.
C:\Program Files\PostgreSQL\pgJDBC\postgresql-8.4.702.jdbc3.jar
C:\Program Files\PostgreSQL\pgJDBC\postgresql-8.4.702.jdbc4.jar
I don't know where else I am going wrong. Please advise.
Thank you.