help-octave
[Top][All Lists]
Advanced

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

Re: Error with Octave


From: Mike Miller
Subject: Re: Error with Octave
Date: Tue, 11 Oct 2016 00:38:40 -0700
User-agent: NeoMutt/20160916 (1.7.0)

On Mon, Oct 10, 2016 at 23:48:05 -0700, en4567 wrote:
> Thanks for your reply!
> 
> Here is the beginning of Loading_history until 
> 
> function  Pressure_history = Loading_History(Pr, ir, tA, t0, deltat,steps) 
>   syms t q w
>   Pressure_history = zeros(1,steps+2);
>   Psr = Pr*(1-(t/t0))*exp(-(t/w)) 
>   Psrdt = int(Psr,t,0,t0) 
>   y = Psrdt - ir 
>   ynew  =subs(y,'w',0:0.05:10); 
>   x= [0:0.05:10]; 
>   wnew = interp1(ynew,x,0)
> 
> Excuse me but what does "call interp1 on a class mean" ?

It means that you are calling the function interp1 on an argument that
is a symbolic variable (an object of class "sym").

The function interp1 works on numeric values but not on symbolic values.
Octave is primarily a numerical tool, not an algebraic/symbolic engine.

-- 
mike



reply via email to

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