I have got the following code to create a 2D colour map of the quantity ref_n_order , depending on the Frequency and on the Solid Content.
I want to plot a map with 6 rows (Solid Content) and 40 columns (Frequency) with the map displaying a colour array for the intensity of the ref_n_order values. The ref_n_order and the Frequency file have been uploaded, in case it helps.
perc(:,1) = [17.67 , 8.39, 2.46, 0.92, 0.23, 0.12];
imagesc(freq, perc(:,1), ref_n_order)
caxis([min(min(ref_n_order)) max(max(ref_n_order))])
xlabel('Solid Content (%)')
ylabel('Frequency (THz)')
Unfortunately, the image I obtain (uploaded below), has the Frequency on the y-axis and the Solid Contents on the x-axis.
Another big problem with the image is how the ref_n_order color matrix rows seems to be inverted, row 1,2,3,4,5,6,of the data matrix are instead plotted as 6,5,4,3,2,1 . 6 being the top row of the image, and 1 being the bottom row, not corresponding to the correct Solid Content.
Thanks for your help.