help-octave
[Top][All Lists]
Advanced

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

Re: Plot issues


From: Brett Green
Subject: Re: Plot issues
Date: Thu, 16 Apr 2020 18:50:18 -0400



On Thu, Apr 16, 2020 at 6:06 PM 이태훈 <address@hidden> wrote:
Hi, all
Sorry for a dummy question.
I have some problems with the plot.
I use this code .
>> function xdot  =F(x,t)
   D  =1.1;
   r  = 0.0984;
   ka =3;
   z  =10;
   umax=0.08;
   km =3;
   I0 =1;
   xdot(1)= (-x.*(D)).+((umax.*((I0.*2.717.^(-ka.*x.*z))./((I0.*(2.717.^(-ka.*x*z))).+km))).*x)
endfunction
>>
>>
>>
>> x0=9.8;
>>  t= linspace(0,50,100);
>>  quad("F",0,3);
I’ve got the xdot result.
But if I enter :plot(x,t)
error: 'x' undefined near line 1 column 6 comes out.
Can you tell me what the problem is ??
Best regards
Tae hoon lee

You never defined a variable named x. What should x be?

Also, for what it's worth, the first input of the plot function is the independent variable, and the second is the dependent variable. I'm guessing you meant for t to be the independent variable.



reply via email to

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