Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in Matlab #10

Open
diba-mlk opened this issue Mar 6, 2019 · 8 comments
Open

Error in Matlab #10

diba-mlk opened this issue Mar 6, 2019 · 8 comments

Comments

@diba-mlk
Copy link

diba-mlk commented Mar 6, 2019

This is the error I get when NetLogo directs me to Matlab:

Running MatlabServer v1.0
Matlab v6.x detected.
Undefined function or variable 'server'.

Error in matlabServer1 (line 164)
close(server);

Can you please help?

@mbi2gs
Copy link
Owner

mbi2gs commented Mar 8, 2019

@diba-mlk The close(server) line is only supposed to run if the server variable is detected by the if (exist('server')) test. Can you test the exist function to see what's going on?

I'm not actively developing this project right now, and I don't have access to Matlab, so I can only be of limited help.

@charleszlf
Copy link

I have the same problem for this program

@mbi2gs
Copy link
Owner

mbi2gs commented Jun 5, 2019

As I mentioned, I'm not actively developing or maintaining this project. If anyone's interested in updating it, let me know.

@charleszlf
Copy link

@mbi2gs Thanks very much for your reply, can you send me your email, and we can update this program together

@mbi2gs
Copy link
Owner

mbi2gs commented Jun 6, 2019 via email

@charleszlf
Copy link

@mbi2gs Oh, I am sorry, I am not familiar with Java. In my Opinion, the problem for your program is MatlabServer1.m, for this part, I can not find the server, maybe the problem is the Matlab version.

@charleszlf
Copy link

@mbi2gs and the result for (exist('server')) test is 7

@josef-streusalz
Copy link
Collaborator

Hi,

the variable name is the problem. Maybe it collides with a inboud variable in a newer version of matlab.
Simply rename 'server' with 'matlabsever1_server' and it should work.
Compare to here
https://rdrr.io/cran/R.matlab/man/1._The_MATLAB_server_running_in_MATLAB.html#heading-1

And download the updated matlabserver1 file here:
https://tr240.uni-wuerzburg.de/vippclass/index.php/s/jCRFrMciJyFxER8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants