setRGBWeights(1,0,0); r=getProfile(); setRGBWeights(0,1,0); g=getProfile();

Both r and g variables are then defined as arrays of length 219.

In the Debug window, the value of both r and g are array[219].

I then want to plot the ratio of the two arrays, but I can't figure out how to divide the two arrays by each other.

I tried this, but I keep getting an error when trying to plot rg because it is looking for an array.

for (i=0; i<219; i++) rg=r[i]/g[i];

Thanks in advance for the help.