Re: [Scilab-users] Frequency response
Le 14/09/2018 à 20:57, Claus Futtrup a écrit : Dear Scilabers I have calculated an impulse response and wish to do an FFT to achieve the frequency response. I know what to expect. In the matlab forum someone asked the same question and was recommended to use freqz ... I wonder what would be the equivalent function in Scilab? https://www.mathworks.com/matlabcentral/answers/350350-how-to-plot-loudspeaker-frequency-response-from-its-impulse-response For example, to replicate the code snippet (second answer in above link), how to do this in Scilab? h = rand(1,64); // impulse response (Matlab source code) fs = 1000; Nfft = 128; [H,F] = freqz(h,1,Nfft,fs); Did you have a look around freq() or repfreq()? We have somewhat the equivalence invfreqz(H,F,m,n,W) <=> frfit(F*2*%pi, H, n, W) // Scilab So you may look for the reciprocal of Scilab's frfit() HTH Samuel ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users
[Scilab-users] Frequency response
Dear Scilabers I have calculated an impulse response and wish to do an FFT to achieve the frequency response. I know what to expect. In the matlab forum someone asked the same question and was recommended to use freqz ... I wonder what would be the equivalent function in Scilab? https://www.mathworks.com/matlabcentral/answers/350350-how-to-plot-loudspeaker-frequency-response-from-its-impulse-response For example, to replicate the code snippet (second answer in above link), how to do this in Scilab? h = rand(1,64); // impulse response (Matlab source code) fs = 1000; Nfft = 128; [H,F] = freqz(h,1,Nfft,fs); semilogx(F,mag2db(abs(H))); grid on; xlabel('Frequency (Hz)'); ylabel('Magnitude (dB)'); Best regards, Claus --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users
[Scilab-users] algebra conventions with integer types to be discussed
Hello all, Integer types in Scilab are not smoothly implemented and there are still some bugs and real questions to be discussed, specifically on over/underflow, exceptions in divisions such as in int8(1)/int8(0) int8(-128)/int8(-1) type of the result of mixed double/integer operations, such as int8(1) + %pi int8(1)/0.0 and so on. Other software related to Scilab, e.g. Matlab and Julia, have different conventions and currently Scilab currently adopts a mix of them, which does not help to make one's mind. Integers types were a long-waited feature by people who needed it, so I would like to have some developpers and user testimonies about the way they do algebra with them. Thanks in adavance, S. -- Stéphane Mottelet Ingénieur de recherche EA 4297 Transformations Intégrées de la Matière Renouvelable Département Génie des Procédés Industriels Sorbonne Universités - Université de Technologie de Compiègne CS 60319, 60203 Compiègne cedex Tel : +33(0)344234688 http://www.utc.fr/~mottelet ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users
Re: [Scilab-users] xload vs load
Hi all, I found a way to reproducibly trigger the bug, and reported it here : https://bugzilla.scilab.org/show_bug.cgi?id=15765 Can you try the sample script on the example graphic file? Cheers, Antoine -- +++ Antoine Monmayrant LAAS - CNRS 7 avenue du Colonel Roche BP 54200 31031 TOULOUSE Cedex 4 FRANCE Tel:+33 5 61 33 64 59 email : antoine.monmayr...@laas.fr permanent email : antoine.monmayr...@polytechnique.org +++ ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users
[Scilab-users] xload vs load
Hi all, am I the only one to experience that xload is completely broken an can be replaced by load? I am trying to reload slightly complex figures (that is with more than one plot per figure) and xload is almost always failing in some way. For example, one of my figure as 3 plots and I can see all three while the graphic window is being populated, but in the end, the first subplot sometimes disappears (it's not visible="off", it's gone). Anyone has experienced something similar? If I can find a way to get this to reproducible, I'll try to fill in a bug report... Antoine -- +++ Antoine Monmayrant LAAS - CNRS 7 avenue du Colonel Roche BP 54200 31031 TOULOUSE Cedex 4 FRANCE Tel:+33 5 61 33 64 59 email : antoine.monmayr...@laas.fr permanent email : antoine.monmayr...@polytechnique.org +++ ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users