|
From: | Doug Stewart |
Subject: | Re: Apply Polyval to Array |
Date: | Sun, 12 Jun 2016 23:25:16 -0400 |
I want to vectorize this:
p1 = [1,2,3;4,5,6;7,8,9];
for idx=1:3
polyval(p1(idx,:),0)
endfor
cellfun("polyval",{p1},{[0;0;0]}); ## fails
arrayfun("polyval",p1,0 "UniformOutput",false)); ## wrong
arrayfun("polyval",p1,zeros(3,3), "UniformOutput",false); ## wrong
Tom Dean
_______________________________________________
Help-octave mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/help-octave
[Prev in Thread] | Current Thread | [Next in Thread] |