Colormap limits between 0 and 1
5 views (last 30 days)
Christopher McDwyer on 6 May 2022
Below I have a small code which outputs an image from a simulation. The image I get will have an arbitrary axis for intensity, which I would love to have scaled to be between values of 0 and 1.
How can I achieve this?
Ex = reshape(csvread('gif240psex.td2', 23), 101, 101, );
Ey = reshape(csvread('gif240psey.td2', 23), 101, 101, );
pcolor(mean(abs(Ex).^2 + abs(Ey).^2, 3))
title('VCSEL Intensity Graph')