Thread Subject: editing/using mfile from Toolbox without admin rights (n00b)

Subject: editing/using mfile from Toolbox without admin rights (n00b)

From: TUDelft

Date: 23 Apr, 2007 05:01:35

Message: 1 of 5

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).

Subject: editing/using mfile from Toolbox without admin rights (n00b)

From: Ken Davis

Date: 23 Apr, 2007 05:12:51

Message: 2 of 5

"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.


Subject: editing/using mfile from Toolbox without admin

From: French Caro

Date: 23 Apr, 2007 07:03:28

Message: 3 of 5

Hi,

The problem is that 'findpeak' is a private function, it can be
accessed only by functions which are located in the directory just on
top.
So I'm afraid that you have to copy it and all other private
functions your function need in your own directory.
I suppose that the problem will arise if the function uses some
classes which are located in the original directory.

Subject: editing/using mfile from Toolbox without admin

From: TUDelft

Date: 23 Apr, 2007 08:15:18

Message: 4 of 5

French caro wrote:
>
>
> Hi,
>
> The problem is that 'findpeak' is a private function, it can be
> accessed only by functions which are located in the directory just
> on
> top.
> So I'm afraid that you have to copy it and all other private
> functions your function need in your own directory.
> I suppose that the problem will arise if the function uses some
> classes which are located in the original directory.

I was also thinking about that. Do you know how I can find out (as
quickly as possible) which private functions I have to copy-paste to
my own custom directory? Is there a command for it?

Thanks for the replies

Subject: editing/using mfile from Toolbox without admin

From: French Caro

Date: 23 Apr, 2007 09:12:07

Message: 5 of 5

Hi,
You can try the function depfun.
I've never used it, and I'm not sure that it take the private
functions but it's the only way I see.

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com