I am trying to read in a .xls file with one column in text and one column of numbers. On Windows, '[num, txt]= xlsread(filename, ...)' works perfectly. Now, I want to run it on a Unix platform, which seems not supporting this command. Is there anything working like this command in basic mode? Or...
Actually, my question is that I never know how to deal with cases outside square grids. Would anyone help me if I want to plot another grid? For example, a triangular grid, with the first 2 columns as (x,y) and the 3rd as some kind of intensity.
If your 2d data is based on a square grid, you can try to convert your color column into a matrix with the location of each element corresponding the position on the square grid. i.e, a=[1,1,0;1,2,1;2,1,2;2,2,3] corresponds to [0,1;2,3]. then CONTOUR plotting.
I was trying to open a .dat file by 'edit'. The file is about 14MB, but it always ends up showing
"Not enough memory to read file contents:
Java heap space" in the command window.
Since it's not a large file at all, there is far more than enough memory left on my computer. I wonder if anyone...
Can I do that? If I want, say the 'gray' colormap to be from 'white to black', instead 'black to white', is there any simple function doing that?
Thanks!