From help-octave-request at bevo dot che dot wisc dot edu Sun Sep 28 12:23:01 1997 Subject: simple question From: Terrence Brannon To: help-octave at bevo dot che dot wisc dot edu Date: 28 Sep 1997 10:22:37 -0700 Why is this screwing up? function a = apha(V) n = -0.01*(V+60) d = exp(-(V+60)/10) - 1 a = n/d endfunction octave:1> V=linspace(10,20,100); octave:2> plot(V,apha(V)); error: __plt2vv__: vector lengths must match error: evaluating index expression near line 50, column 5 error: evaluating if command near line 49, column 3 error: called from `__plt2vv__' in file `/usr/share/octave/2.0.5/m/plot/__plt2vv__.m' error: called from `__plt2__' in file `/usr/share/octave/2.0.5/m/plot/__plt2__.m' error: called from `__plt__' in file `/usr/share/octave/2.0.5/m/plot/__plt__.m' error: called from `plot' in file `/usr/share/octave/2.0.5/m/plot/plot.m' octave:2> -- o============o Sending unsolicited commercial e-mail (UCE) to this address Legal Notice is indication of your consent to pay me $120/hour for 1 hour o============o minimum for professional proofreading & technical assessment. Terrence Brannon * brannon at surf dot usc dot edu * http://quake.usc.edu/~brannon