help-octave
[Top][All Lists]
Advanced

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

rat function


From: rikydzee
Subject: rat function
Date: Tue, 17 Apr 2012 05:45:49 -0700 (PDT)

Hello guys, i'm new to octave and i need some help.
I have a vector of double like A=[ 4.3, 5.7 ,3.1] and i want to aproximate
the elements of A, then A will be 4 6, 3 .  I found the rat function , if i
type x=rat(A(2),5) it returns '6', but this '6' is not a number. If i type
x+1  it returns a matrix. Can anyone help me? I really need this for a
homework.

P.S: Sorry for my bad english

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


reply via email to

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