From: "Ken Davis" <ken.davis@sparta.com>
Path: news.mathworks.com!newsfeed-00.mathworks.com!webcrossing
Newsgroups: comp.soft-sys.matlab
Subject: Re: editing/using mfile from Toolbox without admin rights (n00b)
Message-ID: <AC88BF8736DD56228E898D6E7345C3FC@in.webcrossing.raydaftYaTP>
Date: Mon, 23 Apr 2007 05:12:51 -0400
References: <ef54a80.-1@webcrossing.raydaftYaTP>
NNTP-Posting-Host: 157.185.37.64
Lines: 28
Organization: SPARTA, INc.
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3028
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Xref: news.mathworks.com comp.soft-sys.matlab:404680



"TUDelft" <wessels1984@gmail.com> wrote in message 
news:ef54a80.-1@webcrossing.raydaftYaTP...
>I have a total n00b question. I spend hours looking in the
> Help-functions but it drives me crazy. Each time when I think I found
> the solution it didnt help. I hope you guys can help me out. The
> solution is probably very simple, yet, I didnt found it.
>
> For my graduation project I need to change a mfile from the Toolbox.
> The problem is that I cannot save it in the current directory because
> it is public school PC Im working on. I have tried to save it in my
> own directory but then I get errors that Matlab cannot specify a
> function. The message is:
>
> Undefined command/function 'findpeak'.
>
> Error in ==> cpcorr at 115
>    [xpeak, ypeak, amplitude] = findpeak(norm_cross_corr,subpixel);
>
> The problem is probably that I use some mfiles from my own directory
> (USB hdd) in combination with the mfiles from the Toolbox.
>
> However, I hope you can help me out. I think the solution is very
> easy, and just the settings I have to edit (I hope).

As long as your functions are well-defined and visible on your path, you 
should be okay. See "help path" and "help which" for help.