MATLAB: Max Min value in every column Of Matrix

formatgeneralhighlightmatrixmaximumoutput

I Have a code that gives me some output in my command window as a 9 by 80 matrix. I want that when I run the program and it gives me output in the command window, the max and min value should stand outin some way in each column so that I don't have to find them by looking at each row and each column. They could be either bold or underlined or coloured . I dont know how to do it. Or is it even possible?. If not, can you suggest any other way?

Best Answer

here i have given a example for you
a = [1:5;6:10;11:15;16:20;21:25]
a=a'
[x y] = size(a)
axis([0 x 0 y])
for i=1:x
for j=1:y
if a(i,j)==max(a(i,:))
text(i,j,[ num2str( a(i,j))],'Fontsize',30)
hold on
else
text(i,j,[ num2str( a(i,j))],'Fontsize',20)
hold on
end
end
end
Related Question