help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to wrap "lighting phong;" with a mock funtion?


From: Andreas Romeyke
Subject: Re: How to wrap "lighting phong;" with a mock funtion?
Date: Mon, 14 May 2007 17:18:00 +0200
User-agent: IceDove 1.5.0.10 (X11/20070329)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Carlo,


> In the examples in your previous mail didn't you misplace some
> parentheses?

You are right, thanks ;-)
>
>
> BTW, I thought you could simplify your code by taking advantage of
> the workings of the package manager:
>
> define octavefun/fake_oct_fun.m:
>
> function ret = fake_oct_fun(varargin) ret = 1; end
>
> and put all of your dispatch commands in PKG_ADD, you could do it
> in three lines this way:
>
> missing_fun_list ={'findobj','gcf','gca'}; for ii=1:length if
> ~exist(missing_fun_list{ii}),
> dispatch(missing_fun_list{ii},"fake_oct_fun",'any')), end; end
>
>
> when you add octavefun to your path octave will execute the
> commands in PKG_ADD, while matlab will ignore it.
I am not sure if that works. Sometimes the tested functions expect
special return types, I think. But I will try your suggestions soon.

Bye Andreas

- --
Software Developer / Dipl. Inform. (FH)
Max Planck Institute for Human Cognitive and Brain Sciences
Department of Psychology
Stephanstr. 1a, 04103 Leipzig, Germany

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGSH2nGBhgJGthyeERAiWoAJ9cXzHG4zMJz/mMbh8t+PfAj+GQDQCdHoRV
DTOfljJXG8fTn6BVskWCNF8=
=WXWm
-----END PGP SIGNATURE-----



reply via email to

[Prev in Thread] Current Thread [Next in Thread]