help-octave
[Top][All Lists]
Advanced

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

Matlab code


From: zachary
Subject: Matlab code
Date: Sun, 11 Aug 2013 02:26:45 -0700 (PDT)

hello everyone,
I'm trying to plot a graph but my result is not coming out .
The problem is : Using the inline and mode commands plot the graph as shown
in the attachment.
My code is:
x=inline(['((mod(t,1))+2).*((mod(t,1)<=(-1))&mod(t,1)*(-1).*(mod(t,1)>=-1)+','((mod(t,1).*(mod(t,1)<1)'],'t');
t=-2:0.1:1;
plot(t,x(t))

I don't know where I'm going wrong. please help.
Doc2.docx <http://octave.1599824.n4.nabble.com/file/n4656525/Doc2.docx>  



--
View this message in context: 
http://octave.1599824.n4.nabble.com/Matlab-code-tp4656525.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

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