[Scilab-users] Plotting density values

2014-02-25 Thread SCHULZ Wolfgang
Hello, I'm asking for an intelligent method to solve the following problem without a for loop. I have 2 vectors x an y with e.g. 3000 values. The range of x values is between 0 and 360 and the range of y values is between -15 and 15. I would like to plot the density of individual grid cells for

Re: [Scilab-users] Plotting density values

2014-02-25 Thread Paul Bignier
Hi, It sounds to me like you are trying to use histplot https://help.scilab.org/docs/5.4.1/en_US/histplot.html(y,x)? Regards, Paul On 02/25/2014 12:55 PM, SCHULZ Wolfgang wrote: Hello, I'm asking for an intelligent method to solve the following problem without a for loop. I have 2

Re: [Scilab-users] Plotting density values

2014-02-25 Thread Serge Steer
The following function does the job but with one loop. It is based on the 1D classification function dsearch Serg Steer function occ=dsearch2D(xy,dx,dy,opt) //x,y coordinates of the points of the cloud //dx, discretization of the x axis //dy , discretization of the y axis //occ, table such as