annotate examples/@polynomial/polyval.m @ 15163:886d1fc9d575 gui

GUI branch merged in, closing the GUI branch
author Jordi Gutiérrez Hermoso <jordigh@octave.org>
date Mon, 13 Aug 2012 11:01:26 -0400
parents 1b48b209a8d6
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
8223
0c91b9a17dcf Commit missing files from previous change
David Bateman <dbateman@free.fr>
parents:
diff changeset
1 function [y, dy] = polyval (p, varargin)
0c91b9a17dcf Commit missing files from previous change
David Bateman <dbateman@free.fr>
parents:
diff changeset
2 if (nargout == 2)
14855
1b48b209a8d6 maint: Use Octave coding conventions for coddling parentheses in examples directory
Rik <octave@nomad.inbox5.com>
parents: 9284
diff changeset
3 [y, dy] = polyval (fliplr (p.poly), varargin{:});
8223
0c91b9a17dcf Commit missing files from previous change
David Bateman <dbateman@free.fr>
parents:
diff changeset
4 else
14855
1b48b209a8d6 maint: Use Octave coding conventions for coddling parentheses in examples directory
Rik <octave@nomad.inbox5.com>
parents: 9284
diff changeset
5 y = polyval (fliplr (p.poly), varargin{:});
8223
0c91b9a17dcf Commit missing files from previous change
David Bateman <dbateman@free.fr>
parents:
diff changeset
6 endif
0c91b9a17dcf Commit missing files from previous change
David Bateman <dbateman@free.fr>
parents:
diff changeset
7 endfunction