Re: [Scilab-users] Scan file backward from the end?

2013-03-21 Thread Antoine Monmayrant
On Wednesday, March 20, 2013 23.43 CET, Serge Steer serge.st...@inria.fr wrote: If you know the approximate size of the footer in number of bytes (assume N greater than it) you can try to set the pointer N bytes before the end of file using the u=mopen(myfile); mseek(-N,u,'end')

Re: [Scilab-users] Computing Performance and debugging in Scilab.

2013-03-21 Thread TViT
Strange, at me houses my computer gives out always 0.. Has tested on the working computer 0.047. Question I think I shall be closed to understand what a problem of a house. -- View this message in context:

[Scilab-users] problem loading enviroment

2013-03-21 Thread Ezequiel Soule
Hello, sometimes, when I try to load an eviroment, I got a message like this: loading initial environment Warning : redefining function: %_sodload . Use funcprot(0) to avoid this message inside function: createMacro . = (pos,V,R,calc_D_superp_dobcel(N, N2))

[Scilab-users] discrete Fourier transform

2013-03-21 Thread haasejos
hello, for signalanalysis I would like to use discrete Fourier transform (dft). To see, how it works, I use the simple example below. Why is *XfA = abs(Xf)*2/n* respectively why is XfA = abs(Xf) wrong? clear; clc; xdel; function y = f(x); y = sin(x); endfunction; n = 200;

[Scilab-users] Help to set parameters in an Xcos Diagram

2013-03-21 Thread cedricbdo
Hello everybody, I'd like to set parameters of my scs_m structure for an Xcos Diagram (see attached file) using command lines. To be specific I'd like to set the following imulation parameters : - final integration time - max integration time interval I want them to be equal to a dt that I

Re: [Scilab-users] discrete Fourier transform

2013-03-21 Thread Serge Steer
Le 21/03/2013 16:41, haasejos a écrit : hello, for signalanalysis I would like to use discrete Fourier transform (dft). To see, how it works, I use the simple example below. Why is *XfA = abs(Xf)*2/n* respectively why is XfA = abs(Xf) wrong? Why do you say that XfA = abs(Xf) is wrong Note

Re: [Scilab-users] problem loading enviroment

2013-03-21 Thread TViT
The people, I have checked up houses once again, a problem in that that if to create test script in a file for example TicToc.sci and to start this file, shows always 0.00, and if to copy the text to insert and to start in a command window directly without start of a file. sci (or sce)

Re: [Scilab-users] discrete Fourier transform

2013-03-21 Thread Stefan Du Rietz
On 2013-03-21 17:13, Serge Steer wrote: Le 21/03/2013 16:41, haasejos a écrit : hello, for signalanalysis I would like to use discrete Fourier transform (dft). To see, how it works, I use the simple example below. Why is *XfA = abs(Xf)*2/n* respectively why is XfA =

Re: [Scilab-users] discrete Fourier transform

2013-03-21 Thread haasejos
good evening, what I meant is, that XfA(2) should be 1. Because this value can be understood as the amplitude of sin(x). But XfA(2) beeing calculated with XfA=abs(Xf) (see example) returns 100. This is wrong, isn't it? Josef -- View this message in context:

Re: [Scilab-users] discrete Fourier transform

2013-03-21 Thread Mike Page
Hi, I think this is just a question of scaling. There is no correct scaling for the FFT - just some different conventions. This is explained here (http://www.mathworks.co.uk/matlabcentral/answers/15770-scaling-the-fft-and- the-ifft). The correct answer with Scilab would be exactly 100 (N/2) in