

hello everyone, i am trying to pass fro matlab to scilab but i can't make the same graphs and I cannot replicate the PCOLOR command into scilab.
I want to plot an irradiation map, so I have a matrix with certain values and I want a coloured map corresponding to said values, with the relative legend next to it.
Let's say the matrix is z 10x10, made by 0 and 1
n_parts_x=10
n_parts_y=10
z=[0 0 1 1 0 1 1 0 0 0
0 0 1 1 0 1 1 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 1 1 0 1 1 0 0 0
0 0 1 1 0 1 1 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 1 1 0 1 1 0 0 0
0 0 1 1 0 1 1 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 1 1 0 1 1 0 0 0]
x = linspace(0,10,n_parts_x);
y = linspace(0,10,n_parts_y);
in matlab I have :
pcolor(x,y,z)
shadin interp
colormap(jet)
p=colorbar
if I do the following in scilab using countourf I get a picture as if the ones on the boundaries are not displayed
h=scf();
h.color_map=jetcolormap(32);
contourf(x,y,z,32)
the real problem ha a higher resolution, I've tried to display everythin in the attached picture.
I can do it in scilab with the function surf, but how can I save a 2d image?
Scilab