Matlab Function error

Discussion in 'Programmer's Corner' started by Cerkit, Jan 18, 2010.

  1. Cerkit

    Thread Starter Active Member

    Jan 4, 2009
    Hi. I have defined the following function in matlab

    function [Evenfun] = Evenfunction(E,hbar,L,me,V)

    Evenfun =(tan(((sqrt(2*me*E*1.6e-19))*L/(hbar))))-...

    but it says I haven't defined me.?? I want it so that I can call Evenfun in another program and then have those 5 inputs. Is this not allowed?