This is my code:
t = readtable('B00001.txt','ReadVariableNames',false);
mat = readmatrix('B00001.txt');
X = mat(:,1);
Y = mat(:,2);
U = mat(:,3);
V = mat(:,4);
quiver(X,Y,U,V);
colormap(jet(256));
axis equal
I used the colormap function, but it did not help with making the vectors in different colours
New contributor
Hann is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.