[Scilab-users] spatial correlation coefficient: Is the MATLAB corrcoef function doing the job?

2018-02-07 Thread Heinz
Friends:

I need to compute the spatial correlation coefficient of my x,y,z data in
3d.

Question 1: Is the MATLAB corrcoef function doing the job?
Question 2: How do I get corrcoef running in SciLab or C?

Heinz

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] How to convert .wav to formula?

2018-02-07 Thread Rafael Guerra
Hi,

Q: "I only got graphic? What to do?"
A: look at Fourier synthesis of periodic waveforms.

For the toy example provided of a monochromatic wave, the simple code here 
below finds the approximate solution.
More general waveform case, needs much more programming effort.

// START OF CODE
clear; clf;
fs = 22050; // default sampling rate (Hz)
t=soundsec(0.5,fs);
s=[sin(2*%pi*440*t)];
savewave('foo.wav', s);

y = loadwave('foo.wav');
y = [y zeros(y)];  // make #samples even & increase spectral resolution
Yf = abs(fftshift(fft(y)));
N = length(Yf);
Yf = Yf(N/2+1:$);
f = linspace(0,fs/2-fs/N,N/2);
[y0 k] = max(Yf);
plot(f,Yf,'blue',f(k),Yf(k),'*red')
xlabel("Frequency [Hz]")
printf("sinusoid frequency = %.1f Hz",f(k))
// END OF CODE

Regards,
Rafael
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] Scilab dmg images for OSX Sierra (macOS 10.12) and High Sierra (macOS 10.13)

2018-02-07 Thread Stéphane Mottelet

Hello all,

As you probably now, running Scilab on recent versions of OSX is not 
straightforward and althought the fixes are not that complicated, some 
users are reluctant to use the command line. The aim of this modest page


http://www.utc.fr/~mottelet/Darwin/

is to provide OSX applications were the interfering bundled libraries 
have been removed. The only remaining thing to do is to install the 
legacy Java 6 runtime (https://support.apple.com/kb/DL1572).


If something goes wrong please post a message on the mailing-list.

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] macOs High Sierra

2018-02-07 Thread Philippe Dérogis
Hi Ricardo,

  I tried your fix, then scilab was able to show up a window saying to install 
an old java package. I installed it and TADA… it worked. Thank to all of you 
guys for your help.

Philippe DEROGIS


> Le 6 févr. 2018 à 17:48, Ricardo Fabbri  a écrit :
> 
> Phillippe,
> 
> I am not sure if you have seen this work around listed in another thread:
> 
> Scilab 6.0.0 (the standar distribution, not the nightly build) worked
> for me with Mac OS high sierra 10.13.3 by
> removing these files:
> 
> /Applications/scilab-6.0.0.app/Contents/MacOS/lib/thirdparty/libBLAS.dylib
> /Applications/scilab-6.0.0.app/Contents/MacOS/lib/thirdparty/libz.*
> 
> That may work for you while you wait for an updated Mac OS build to be
> contributed.
> 
> --
> Ricardo Fabbri
> Professor of Computer Engineering
> IPRJ/UERJ Nova Friburgo Graduate Program – CAPES 6
> rfabbri.github.io
> 
> 
> On Tue, Feb 6, 2018 at 2:34 PM, Clément David
>  wrote:
>> Hello Antoine, hello all,
>> 
>> The www.scilab.org website have not been updated yet but the nightly builds 
>> might be removed in
>> favor of the Continuous Integration builds [1]. The MacOs build [2] is a bit 
>> unreliable but might
>> provide your the latest binaries.
>> 
>> [1]: https://build.scilab.org/view/Scilab%20binaries/
>> [2]: https://build.scilab.org/view/Scilab%20binaries/job/scilab-6.0-macosx/
>> 
>> Thanks,
>> 
>> --
>> Clément
>> 
>> Le lundi 05 février 2018 à 13:02 +0100, amonm...@laas.fr a écrit :
>>> Le 05/02/2018 à 12:44, Philippe Dérogis a écrit :
Hi,
 
  I upgraded my mac to High Sierra 10.13.3 last week and Scilab 6.0.0 
 doesn’t start anymore. I
 tried to download the nighty build here : 
 http://www.scilab.org/en/development/nightly_builds/br
 anch60 and I get the 404 error : The requested URL 
 /download/2017-08-02/scilab-branch-6.0-
 1500821730-x86_64.dmg was not found on this server.
 I would like to know if there is a fix to this situation.
>>> Hello,
>>> 
>>> It's the same with the master branch: 
>>> http://downloadarea.scilab.org/download/2017-08-02/scilab-ma
>>> ster-1501146348-x86_64.dmg gives a 404. That's the same for the windows 
>>> link: http://downloadarea.
>>> scilab.org/download/2017-07-28/scilab-master-1501146348_x64.exe
>>> 
>>> Antoine
 Any help would be greatly appreciated.
 
 Thanks to all developers and contributors.
 
 Philippe DEROGIS.
 
 
 
 ___
 users mailing list
 users@lists.scilab.org
 http://lists.scilab.org/mailman/listinfo/users
>>> 
>>> ___
>>> users mailing list
>>> users@lists.scilab.org
>>> http://lists.scilab.org/mailman/listinfo/users
>> ___
>> users mailing list
>> users@lists.scilab.org
>> http://lists.scilab.org/mailman/listinfo/users
> ___
> users mailing list
> users@lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] How to convert .wav to formula?

2018-02-07 Thread Илья Илья
How to convert .wav to formula?

In scilab I can write like:

t=soundsec(0.5);
s=[sin(2*%pi*440*t)];
savewave('foo.wav', s);

and by this convert formula to .wav.

But how can I convert .wav to formula? If I use

analyze(loadwave('foo.wav'));

I only got graphic? What to do?
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users