annotate private/plot_cvec.m @ 17:4e61b949e73d

Eigenvalue/vector plot now sets colormap.
author samer
date Tue, 28 Feb 2012 22:49:23 +0000
parents e9b425233168
children
rev   line source
samer@12 1 % plot_cvec - Plot complex vector as bar chart
samer@12 2 function plot_cvec(x)
samer@12 3 if isreal(x)
samer@12 4 bar(x);
samer@12 5 else
samer@12 6 bar([real(x),imag(x)]);
samer@12 7 %legend({'real','imag'});
samer@12 8 end
samer@12 9 xlim([0.5, length(x)+0.5]);
samer@12 10 end
samer@12 11