Plotting vectors?
Posted: Wed Nov 02, 2005 3:51 pm
Hello, I'm using the e_extracellular as a "voltage source" for an extracellular electrode. I have a file which contains in the first column the "time" variable of my applied potential and the "M" other columns contains the voltages at each and every "z" of my axon.
objref field, potentialsfile
potentialsfile = new File("potentialsmatrix.txt")
potentialsfile.ropen()
field = new Matrix()
objref vex[stimnum], tvec
tvec = field.getcol(0) // reading the first column into tvec
for ii=0, stimnum-1{ // reading the other columns into vector "vex[]"
vex[ii] = field.getcol(ii+1)
}
objref field // free up space
I would like to obtain a graphical view of those two vectors... I mean
vex[] plotted in function of tvec... But I don't know how. I've tried to plot e_extracellular(0.5) on the same graphic as the node.v(0.5) but I get very strange things...
Thanks
objref field, potentialsfile
potentialsfile = new File("potentialsmatrix.txt")
potentialsfile.ropen()
field = new Matrix()
objref vex[stimnum], tvec
tvec = field.getcol(0) // reading the first column into tvec
for ii=0, stimnum-1{ // reading the other columns into vector "vex[]"
vex[ii] = field.getcol(ii+1)
}
objref field // free up space
I would like to obtain a graphical view of those two vectors... I mean
vex[] plotted in function of tvec... But I don't know how. I've tried to plot e_extracellular(0.5) on the same graphic as the node.v(0.5) but I get very strange things...
Thanks