I don't understand what happens when a colour map with more than 256 elements is requested. I'm trying to create a jet colour map with 1024 elements to display a 10 bit image using the image function. If I do this using either your version of jet or the Matlab one, I get the same result - all blue! 512 creates blue and green strips. 300 elements gives the normal jet colour map between 0 and 255, then it looks like it starts over again from blue. This is not what I would expect - values lower than 256 correctly fit the full colour range into the number of colour map entries requested - I don't see why this should be any different for larger colour maps.
The work around I'm using is to use pcolor instead of image to plot the data, as this seems to work with a smaller (presumably 256 element) colour map and map the data onto this. While this works, I don't like the pcolor function very much. It's not intended for displaying images. The axes labels align with grid lines instead of pixels, the data cursor selects points instead of pixels, and I need to have an extra row and column of data.
Is there a way of getting a 1024 element colour map that behaves as would be expected?
Brilliant tool! Great being able to sit back and watch a progress bar sliding along as a room full of computers gets to work doing your simulation.
I have a question though - what dimensions are typically used for parameterCell? I've tried doing some large multidimensional runs (e.g. 4x150x10) and things seemed to grind to a halt - I'm still looking into it, just wondered if the dimensions I'm using are typical or too large.
I added this bit of code to startmulticoremaster so that it automatically starts the appropriate amount of slaves (make sure your path is setup properly so that it can find startmulticoreslave.m upon startup):
% Start slaves:
max_instances = 4;
[status,result] = system('tasklist /FI "imagename eq matlab.exe" /fo table /nh');
currently_running = length(strfind(result,'MATLAB.exe'));
for i = 1:(max_instances-currently_running)
!"C:\Program Files\MATLAB\R2013b\bin\matlab.exe" -nodisplay -nosplash -nodesktop -r "run('startmulticoreslave.m');exit;"
Package is quite useful. If it was not using variable transfer based on files but direct memory, then it would have been much more useful. Currently it takes a while for the parallel processes to start, since there is a large overhead
Georgia: As I stated to Bui Yuki below, the rescale function comes in the zip file of this submission, in the subdirectory called "private". You need to put the folder containing the files on your MATLAB path or else cd to that directory (as with any function).
When I run the real2rgb function, display the following error: "Undefined function 'rescale' ... " I can not found the function.
I used the following function, but maybe is not that it's want. And the color points displayed as black.
function [HsN,GsN] = rescale(Hs,Gs,cfsRESN)
cfsRES = cfsRESN(2) - cfsRESN(1);
HsN = Hs*cfsRES;
GsN = Gs*cfsRES;
Could you help me?