running NEURON from Matlab

Moderator: wwlytton

Post Reply
nasrin.sh
Posts: 18
Joined: Mon Sep 20, 2010 10:28 pm
Location: Iran

running NEURON from Matlab

Post by nasrin.sh »

i use this code

Code: Select all

[status,result]=system('C:\nrn70\bin\nrniv.exe -nobanner -c "print getcwd()" -c "quit()"')
[status,result]=system('C:\nrn70\bin\nrniv.exe -nobanner main.hoc -c ')
but after it execute and connect to neuron this error is displayed
status =

0


result =

/cygdrive/c/Users/Nasrin/Desktop/Fp/



status =

35584


result =

/cygdrive/c/nrn70/bin/nrniv: undefined variable c
near line 0
-c
^
/cygdrive/c/nrn70/bin/nrniv: Segmentation violation
near line 0
^
12383 [main] nrniv 6076 _cygtls::handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
13349 [main] nrniv 6076 open_stackdumpfile: Dumping stack trace to nrniv.exe.stackdump
would u tell me whats my mistake?
hines
Site Admin
Posts: 1688
Joined: Wed May 18, 2005 3:32 pm

Re: running NEURON from Matlab

Post by hines »

The first statement succeeded but the second statement failed because of a trailing '-c'
with no following executable hoc statement.
Post Reply