genvarname.m

View: New views
4 Messages — Rating Filter:   Alert me  

genvarname.m

by wlmd888 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

  I installed Octave 3.0.2 but did not find genvarname.m,
in addition, nargchk.m is slightly different from that in Matlab. Are these functions implemented in this current release?

  Thanks a lot!


genvarname.m

by John W. Eaton :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On  2-Oct-2008, wlmd888 wrote:

|   I installed Octave 3.0.2 but did not find genvarname.m,

It is in the current development sources, so it will appear in the
next major release of Octave.  But it is just a .m file, so maybe it
will also work with 3.0.2.

| in addition, nargchk.m is slightly different from that in Matlab.

In what way?

If you think you've found a bug in Octave, then please submit a
complete report to the bug@... list.  Please read
http://www.octave.org/bugs.html to see what you should include so that
your report is helpful.

jwe
_______________________________________________
Help-octave mailing list
Help-octave@...
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave

Re: genvarname.m

by wlmd888 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks for your reply!

For nargchk function,

In Octave, the function is defined as:

nargchk (NARGIN_MIN, NARGIN_MAX, N)

In Matlab, the function is defined as:
MSGSTRUCT = NARGCHK(LOW,HIGH,N,'struct')
MSG=NARGCHK(LOW,HIGH,N,'string')
MSG = NARGCHK(LOW,HIGH,N)

So in matlab, it can accept more than 3 parameters, but in Octave, it can only accept 3 parameters.




John W. Eaton wrote:
On  2-Oct-2008, wlmd888 wrote:

|   I installed Octave 3.0.2 but did not find genvarname.m,

It is in the current development sources, so it will appear in the
next major release of Octave.  But it is just a .m file, so maybe it
will also work with 3.0.2.

| in addition, nargchk.m is slightly different from that in Matlab.

In what way?

If you think you've found a bug in Octave, then please submit a
complete report to the bug@octave.org list.  Please read
http://www.octave.org/bugs.html to see what you should include so that
your report is helpful.

jwe
_______________________________________________
Help-octave mailing list
Help-octave@cae.wisc.edu
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave

Re: genvarname.m

by John W. Eaton :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On  2-Oct-2008, wlmd888 wrote:

|
| Thanks for your reply!
|
| For nargchk function,
|
| In Octave, the function is defined as:
|
| nargchk (NARGIN_MIN, NARGIN_MAX, N)
|
| In Matlab, the function is defined as:
| MSGSTRUCT = NARGCHK(LOW,HIGH,N,'struct')
| MSG=NARGCHK(LOW,HIGH,N,'string')
| MSG = NARGCHK(LOW,HIGH,N)
|
| So in matlab, it can accept more than 3 parameters, but in Octave, it can
| only accept 3 parameters.

OK.

I'd consider a patch.

jwe
_______________________________________________
Help-octave mailing list
Help-octave@...
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave