help-octave
[Top][All Lists]
Advanced

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

Re: What should I do to fix "warning: implicit conversion from real matr


From: Carlo de Falco
Subject: Re: What should I do to fix "warning: implicit conversion from real matrix to real scalar"?
Date: Wed, 8 Jul 2009 17:12:32 +0200


On 8 Jul 2009, at 16:25, John B. Thoo wrote:

1;

function y = h (x)

load ht_tf8M160ord9visc01.mat u;
x = u(:,5);

  y = x.^2;

endfunction

quad ("h", 0, 1)

the integrand function you pass to quad should return a scalar output when given scalar input while your function h always returns THE SAME vector ( u(:,5).^2 as stored in the file ht_tf8M160ord9visc01.mat ) regardless of the input.
c.


reply via email to

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