[sage-support] Re: fft from matlab

2008-04-11 Thread David Joyner
On Fri, Apr 11, 2008 at 4:30 AM, Nicoo <[EMAIL PROTECTED]> wrote: > > thx for theses examples, but now i don't found how to scale my plot, i > used list_plot I'm not sure that you mean by scale but in any case, list_plot, and its options, is described here http://www.sagemath.org/doc/html/ref/m

[sage-support] Re: fft from matlab

2008-04-11 Thread Nicoo
thx for theses examples, but now i don't found how to scale my plot, i used list_plot On 10 avr, 18:38, Joshua Kantor <[EMAIL PROTECTED]> wrote: > This should work for you > > sage: import numpy > sage: a=numpy.loadtxt('my_file.txt') > sage: x_vals=a[:,1] > sage: y_vals=a[:,2] > > note that now x

[sage-support] Re: fft from matlab

2008-04-10 Thread Joshua Kantor
This should work for you sage: import numpy sage: a=numpy.loadtxt('my_file.txt') sage: x_vals=a[:,1] sage: y_vals=a[:,2] note that now x_vals and y_vals are numpy arrays. At this point you have a few ways of of doing the ftt Option 1 sage: from numpy import fft sage: fft.fft(x_xvals) sage: fft.

[sage-support] Re: fft from matlab

2008-04-10 Thread Nicoo
simple txt file with columns first column is the time, second the X velocity value, third the Y velocity value and I want to fft each components of velocity to get the frequency of oscillations. (sry for my bad english) On 10 avr, 18:16, "William Stein" <[EMAIL PROTECTED]> wrote: > On Thu, Apr 10

[sage-support] Re: fft from matlab

2008-04-10 Thread William Stein
On Thu, Apr 10, 2008 at 9:15 AM, Nicoo <[EMAIL PROTECTED]> wrote: > > thx, I will try the fft() method, other question, how can I load my > datas in a vector ? What format are your datas in? -- William > > On 10 avr, 17:40, "William Stein" <[EMAIL PROTECTED]> wrote: > > > > On Thu, Apr 10,

[sage-support] Re: fft from matlab

2008-04-10 Thread Nicoo
thx, I will try the fft() method, other question, how can I load my datas in a vector ? On 10 avr, 17:40, "William Stein" <[EMAIL PROTECTED]> wrote: > On Thu, Apr 10, 2008 at 8:26 AM, Nicoo <[EMAIL PROTECTED]> wrote: > > Hello there, > > -I used matlab to fft some datas, I have .m file from mat

[sage-support] Re: fft from matlab

2008-04-10 Thread William Stein
On Thu, Apr 10, 2008 at 8:26 AM, Nicoo <[EMAIL PROTECTED]> wrote: > Hello there, > -I used matlab to fft some datas, I have .m file from matlab, is it > possible to load it in sagemath and use it ? No, the Sage programming language is Python, which is as different from Matlab's language as Mat