% plot_cvec - Plot complex vector as bar chart
function plot_cvec(x)
	if isreal(x)
		bar(x);
	else
		bar([real(x),imag(x)]);
		%legend({'real','imag'});
	end
	xlim([0.5, length(x)+0.5]);
end

